pub struct Metadata(/* private fields */);
Expand description
An array of CandidateTranscript
objects computed by the model.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn transcripts(&self) -> &[CandidateTranscript]
pub fn transcripts(&self) -> &[CandidateTranscript]
Return an array of possible transcriptions.
Sourcepub fn num_transcripts(&self) -> u32
pub fn num_transcripts(&self) -> u32
Size of the transcripts array
Sourcepub fn to_owned(&self) -> OwnedMetadata
pub fn to_owned(&self) -> OwnedMetadata
Convert this into an OwnedMetadata
struct.
Warning: this can be an extremely expensive operation depending on how many transcriptions were returned, as well as the average length.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more