pub struct TranscriptSegmentContract {
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,
pub words: Vec<TranscriptWordContract>,
pub chars: Vec<TranscriptCharContract>,
pub attributes: BTreeMap<String, String>,
}Fields§
§index: u64§start_seconds: Option<f64>§end_seconds: Option<f64>§text: String§language: Option<String>§speaker: Option<String>§confidence: Option<f32>§is_final: bool§words: Vec<TranscriptWordContract>§chars: Vec<TranscriptCharContract>§attributes: BTreeMap<String, String>Implementations§
Trait Implementations§
Source§impl AsTextSegmentContract for TranscriptSegmentContract
impl AsTextSegmentContract for TranscriptSegmentContract
fn as_text_segment_contract(&self) -> TextSegmentContract
Source§impl Clone for TranscriptSegmentContract
impl Clone for TranscriptSegmentContract
Source§fn clone(&self) -> TranscriptSegmentContract
fn clone(&self) -> TranscriptSegmentContract
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 TranscriptSegmentContract
impl Debug for TranscriptSegmentContract
Source§impl<'de> Deserialize<'de> for TranscriptSegmentContract
impl<'de> Deserialize<'de> for TranscriptSegmentContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 TextSegmentContract
impl From<&TranscriptSegmentContract> for TextSegmentContract
Source§fn from(value: &TranscriptSegmentContract) -> Self
fn from(value: &TranscriptSegmentContract) -> 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 From<TranscriptSegmentContract> for TextSegmentContract
impl From<TranscriptSegmentContract> for TextSegmentContract
Source§fn from(value: TranscriptSegmentContract) -> Self
fn from(value: TranscriptSegmentContract) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TranscriptSegmentContract
impl PartialEq for TranscriptSegmentContract
Source§fn eq(&self, other: &TranscriptSegmentContract) -> bool
fn eq(&self, other: &TranscriptSegmentContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranscriptSegmentContract
Auto Trait Implementations§
impl Freeze for TranscriptSegmentContract
impl RefUnwindSafe for TranscriptSegmentContract
impl Send for TranscriptSegmentContract
impl Sync for TranscriptSegmentContract
impl Unpin for TranscriptSegmentContract
impl UnsafeUnpin for TranscriptSegmentContract
impl UnwindSafe for TranscriptSegmentContract
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