pub struct TranscriptSegment {
pub index: u64,
pub start_seconds: Option<f64>,
pub end_seconds: Option<f64>,
pub text: String,
pub language: Option<String>,
pub speaker: Option<String>,
pub confidence: Option<f32>,
pub is_final: bool,
}Expand description
Data type for transcript segment.
Fields§
§index: u64The index value.
start_seconds: Option<f64>The start seconds value.
end_seconds: Option<f64>The end seconds value.
text: StringText content for this value.
language: Option<String>Language tag for this value.
speaker: Option<String>The speaker value.
confidence: Option<f32>Confidence score for this value.
is_final: boolThe is final value.
Implementations§
Trait Implementations§
Source§impl Clone for TranscriptSegment
impl Clone for TranscriptSegment
Source§fn clone(&self) -> TranscriptSegment
fn clone(&self) -> TranscriptSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscriptSegment
impl Debug for TranscriptSegment
Source§impl From<&TranscriptSegment> for TranscriptSegmentContract
impl From<&TranscriptSegment> for TranscriptSegmentContract
Source§fn from(value: &TranscriptSegment) -> Self
fn from(value: &TranscriptSegment) -> Self
Converts to this type from the input type.
Source§impl From<TranscriptSegment> for TranscriptSegmentContract
impl From<TranscriptSegment> for TranscriptSegmentContract
Source§fn from(value: TranscriptSegment) -> Self
fn from(value: TranscriptSegment) -> Self
Converts to this type from the input type.
Source§impl From<TranscriptSegmentContract> for TranscriptSegment
impl From<TranscriptSegmentContract> for TranscriptSegment
Source§fn from(value: TranscriptSegmentContract) -> Self
fn from(value: TranscriptSegmentContract) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TranscriptSegment
impl PartialEq for TranscriptSegment
Source§fn eq(&self, other: &TranscriptSegment) -> bool
fn eq(&self, other: &TranscriptSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranscriptSegment
Auto Trait Implementations§
impl Freeze for TranscriptSegment
impl RefUnwindSafe for TranscriptSegment
impl Send for TranscriptSegment
impl Sync for TranscriptSegment
impl Unpin for TranscriptSegment
impl UnsafeUnpin for TranscriptSegment
impl UnwindSafe for TranscriptSegment
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