#[non_exhaustive]pub struct ApiTranscriptSegment {
pub text: String,
pub start_time: f64,
pub end_time: f64,
}Available on crate feature
dbx_riviera only.Expand description
Transcript segment for APIv2
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.text: String§start_time: f64§end_time: f64Implementations§
Source§impl ApiTranscriptSegment
impl ApiTranscriptSegment
pub fn with_text(self, value: String) -> Self
pub fn with_start_time(self, value: f64) -> Self
pub fn with_end_time(self, value: f64) -> Self
Trait Implementations§
Source§impl Clone for ApiTranscriptSegment
impl Clone for ApiTranscriptSegment
Source§fn clone(&self) -> ApiTranscriptSegment
fn clone(&self) -> ApiTranscriptSegment
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 ApiTranscriptSegment
impl Debug for ApiTranscriptSegment
Source§impl Default for ApiTranscriptSegment
impl Default for ApiTranscriptSegment
Source§fn default() -> ApiTranscriptSegment
fn default() -> ApiTranscriptSegment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiTranscriptSegment
impl<'de> Deserialize<'de> for ApiTranscriptSegment
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ApiTranscriptSegment
impl PartialEq for ApiTranscriptSegment
Source§fn eq(&self, other: &ApiTranscriptSegment) -> bool
fn eq(&self, other: &ApiTranscriptSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApiTranscriptSegment
impl Serialize for ApiTranscriptSegment
impl StructuralPartialEq for ApiTranscriptSegment
Auto Trait Implementations§
impl Freeze for ApiTranscriptSegment
impl RefUnwindSafe for ApiTranscriptSegment
impl Send for ApiTranscriptSegment
impl Sync for ApiTranscriptSegment
impl Unpin for ApiTranscriptSegment
impl UnsafeUnpin for ApiTranscriptSegment
impl UnwindSafe for ApiTranscriptSegment
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