pub struct TranscriptSegment {
pub index: usize,
pub start_ms: u64,
pub end_ms: u64,
pub text: String,
pub speaker: Option<String>,
pub confidence: Option<f32>,
}Expand description
Timestamped transcript segment.
Fields§
§index: usizeSegment index in transcript order.
start_ms: u64Start timestamp in milliseconds from media start.
end_ms: u64End timestamp in milliseconds from media start.
text: StringTranscript text for this segment.
speaker: Option<String>Optional speaker identifier.
confidence: Option<f32>Confidence score when provided by backend.
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 · 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<'de> Deserialize<'de> for TranscriptSegment
impl<'de> Deserialize<'de> for TranscriptSegment
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 PartialEq for TranscriptSegment
impl PartialEq for TranscriptSegment
Source§impl Serialize for TranscriptSegment
impl Serialize for TranscriptSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request