#[non_exhaustive]pub struct ApiStructuredTranscript {
pub segments: Option<Vec<ApiTranscriptSegment>>,
pub transcript_locale: String,
}Available on crate features
async_routes and dbx_riviera only.Expand description
Structured transcript 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.segments: Option<Vec<ApiTranscriptSegment>>§transcript_locale: StringImplementations§
Source§impl ApiStructuredTranscript
impl ApiStructuredTranscript
pub fn with_segments(self, value: Vec<ApiTranscriptSegment>) -> Self
pub fn with_transcript_locale(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for ApiStructuredTranscript
impl Clone for ApiStructuredTranscript
Source§fn clone(&self) -> ApiStructuredTranscript
fn clone(&self) -> ApiStructuredTranscript
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 ApiStructuredTranscript
impl Debug for ApiStructuredTranscript
Source§impl Default for ApiStructuredTranscript
impl Default for ApiStructuredTranscript
Source§fn default() -> ApiStructuredTranscript
fn default() -> ApiStructuredTranscript
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiStructuredTranscript
impl<'de> Deserialize<'de> for ApiStructuredTranscript
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 ApiStructuredTranscript
impl PartialEq for ApiStructuredTranscript
Source§fn eq(&self, other: &ApiStructuredTranscript) -> bool
fn eq(&self, other: &ApiStructuredTranscript) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApiStructuredTranscript
impl Serialize for ApiStructuredTranscript
impl StructuralPartialEq for ApiStructuredTranscript
Auto Trait Implementations§
impl Freeze for ApiStructuredTranscript
impl RefUnwindSafe for ApiStructuredTranscript
impl Send for ApiStructuredTranscript
impl Sync for ApiStructuredTranscript
impl Unpin for ApiStructuredTranscript
impl UnsafeUnpin for ApiStructuredTranscript
impl UnwindSafe for ApiStructuredTranscript
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