#[non_exhaustive]pub struct OutputFormatConfig {
pub native: Option<NativeOutputFileFormatConfig>,
pub vtt: Option<VttOutputFileFormatConfig>,
pub srt: Option<SrtOutputFileFormatConfig>,
/* private fields */
}Expand description
Configuration for the format of the results stored to output.
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.native: Option<NativeOutputFileFormatConfig>Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.
vtt: Option<VttOutputFileFormatConfig>Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.
srt: Option<SrtOutputFileFormatConfig>Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.
Implementations§
Source§impl OutputFormatConfig
impl OutputFormatConfig
pub fn new() -> Self
Sourcepub fn set_native<T>(self, v: T) -> Selfwhere
T: Into<NativeOutputFileFormatConfig>,
pub fn set_native<T>(self, v: T) -> Selfwhere
T: Into<NativeOutputFileFormatConfig>,
Sourcepub fn set_or_clear_native<T>(self, v: Option<T>) -> Selfwhere
T: Into<NativeOutputFileFormatConfig>,
pub fn set_or_clear_native<T>(self, v: Option<T>) -> Selfwhere
T: Into<NativeOutputFileFormatConfig>,
Sets or clears the value of native.
§Example
ⓘ
use google_cloud_speech_v2::model::NativeOutputFileFormatConfig;
let x = OutputFormatConfig::new().set_or_clear_native(Some(NativeOutputFileFormatConfig::default()/* use setters */));
let x = OutputFormatConfig::new().set_or_clear_native(None::<NativeOutputFileFormatConfig>);Sourcepub fn set_vtt<T>(self, v: T) -> Selfwhere
T: Into<VttOutputFileFormatConfig>,
pub fn set_vtt<T>(self, v: T) -> Selfwhere
T: Into<VttOutputFileFormatConfig>,
Sourcepub fn set_or_clear_vtt<T>(self, v: Option<T>) -> Selfwhere
T: Into<VttOutputFileFormatConfig>,
pub fn set_or_clear_vtt<T>(self, v: Option<T>) -> Selfwhere
T: Into<VttOutputFileFormatConfig>,
Sets or clears the value of vtt.
§Example
ⓘ
use google_cloud_speech_v2::model::VttOutputFileFormatConfig;
let x = OutputFormatConfig::new().set_or_clear_vtt(Some(VttOutputFileFormatConfig::default()/* use setters */));
let x = OutputFormatConfig::new().set_or_clear_vtt(None::<VttOutputFileFormatConfig>);Sourcepub fn set_srt<T>(self, v: T) -> Selfwhere
T: Into<SrtOutputFileFormatConfig>,
pub fn set_srt<T>(self, v: T) -> Selfwhere
T: Into<SrtOutputFileFormatConfig>,
Sourcepub fn set_or_clear_srt<T>(self, v: Option<T>) -> Selfwhere
T: Into<SrtOutputFileFormatConfig>,
pub fn set_or_clear_srt<T>(self, v: Option<T>) -> Selfwhere
T: Into<SrtOutputFileFormatConfig>,
Sets or clears the value of srt.
§Example
ⓘ
use google_cloud_speech_v2::model::SrtOutputFileFormatConfig;
let x = OutputFormatConfig::new().set_or_clear_srt(Some(SrtOutputFileFormatConfig::default()/* use setters */));
let x = OutputFormatConfig::new().set_or_clear_srt(None::<SrtOutputFileFormatConfig>);Trait Implementations§
Source§impl Clone for OutputFormatConfig
impl Clone for OutputFormatConfig
Source§fn clone(&self) -> OutputFormatConfig
fn clone(&self) -> OutputFormatConfig
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 OutputFormatConfig
impl Debug for OutputFormatConfig
Source§impl Default for OutputFormatConfig
impl Default for OutputFormatConfig
Source§fn default() -> OutputFormatConfig
fn default() -> OutputFormatConfig
Returns the “default value” for a type. Read more
Source§impl Message for OutputFormatConfig
impl Message for OutputFormatConfig
Source§impl PartialEq for OutputFormatConfig
impl PartialEq for OutputFormatConfig
impl StructuralPartialEq for OutputFormatConfig
Auto Trait Implementations§
impl Freeze for OutputFormatConfig
impl RefUnwindSafe for OutputFormatConfig
impl Send for OutputFormatConfig
impl Sync for OutputFormatConfig
impl Unpin for OutputFormatConfig
impl UnwindSafe for OutputFormatConfig
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