#[non_exhaustive]pub struct TranscriptPiece {
pub id: String,
pub index: u32,
pub count: u32,
pub text: String,
pub estimated_tokens: u64,
}Expand description
One deterministic transcript-only piece.
Fields are readable by consumers, while construction remains owned by
TranscriptPlan.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§index: u32§count: u32§text: String§estimated_tokens: u64Implementations§
Source§impl TranscriptPiece
impl TranscriptPiece
Sourcepub fn metadata(&self, recording: &RecordingStatus) -> Value
pub fn metadata(&self, recording: &RecordingStatus) -> Value
Reproduces the existing audio ingress metadata for this piece.
Sourcepub fn formatted_text(
&self,
recording: &RecordingStatus,
) -> Result<String, Error>
pub fn formatted_text( &self, recording: &RecordingStatus, ) -> Result<String, Error>
Reproduces the existing History input for this piece.
Trait Implementations§
Source§impl Debug for TranscriptPiece
impl Debug for TranscriptPiece
impl Eq for TranscriptPiece
Source§impl PartialEq for TranscriptPiece
impl PartialEq for TranscriptPiece
impl StructuralPartialEq for TranscriptPiece
Auto Trait Implementations§
impl Freeze for TranscriptPiece
impl RefUnwindSafe for TranscriptPiece
impl Send for TranscriptPiece
impl Sync for TranscriptPiece
impl Unpin for TranscriptPiece
impl UnsafeUnpin for TranscriptPiece
impl UnwindSafe for TranscriptPiece
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