#[non_exhaustive]pub struct RecognitionOutputConfig {
pub output_format_config: Option<OutputFormatConfig>,
pub output: Option<Output>,
/* private fields */
}Expand description
Configuration options for the output(s) of recognition.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.output_format_config: Option<OutputFormatConfig>Optional. Configuration for the format of the results stored to output.
If unspecified transcripts will be written in the NATIVE format only.
output: Option<Output>Implementations§
Source§impl RecognitionOutputConfig
impl RecognitionOutputConfig
Sourcepub fn set_output_format_config<T>(self, v: T) -> Selfwhere
T: Into<OutputFormatConfig>,
pub fn set_output_format_config<T>(self, v: T) -> Selfwhere
T: Into<OutputFormatConfig>,
Sets the value of output_format_config.
§Example
use google_cloud_speech_v2::model::OutputFormatConfig;
let x = RecognitionOutputConfig::new().set_output_format_config(OutputFormatConfig::default()/* use setters */);Sourcepub fn set_or_clear_output_format_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputFormatConfig>,
pub fn set_or_clear_output_format_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputFormatConfig>,
Sets or clears the value of output_format_config.
§Example
use google_cloud_speech_v2::model::OutputFormatConfig;
let x = RecognitionOutputConfig::new().set_or_clear_output_format_config(Some(OutputFormatConfig::default()/* use setters */));
let x = RecognitionOutputConfig::new().set_or_clear_output_format_config(None::<OutputFormatConfig>);Sourcepub fn set_output<T: Into<Option<Output>>>(self, v: T) -> Self
pub fn set_output<T: Into<Option<Output>>>(self, v: T) -> Self
Sets the value of output.
Note that all the setters affecting output are mutually
exclusive.
§Example
use google_cloud_speech_v2::model::GcsOutputConfig;
let x = RecognitionOutputConfig::new().set_output(Some(
google_cloud_speech_v2::model::recognition_output_config::Output::GcsOutputConfig(GcsOutputConfig::default().into())));Sourcepub fn gcs_output_config(&self) -> Option<&Box<GcsOutputConfig>>
pub fn gcs_output_config(&self) -> Option<&Box<GcsOutputConfig>>
The value of output
if it holds a GcsOutputConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_output_config<T: Into<Box<GcsOutputConfig>>>(self, v: T) -> Self
pub fn set_gcs_output_config<T: Into<Box<GcsOutputConfig>>>(self, v: T) -> Self
Sets the value of output
to hold a GcsOutputConfig.
Note that all the setters affecting output are
mutually exclusive.
§Example
use google_cloud_speech_v2::model::GcsOutputConfig;
let x = RecognitionOutputConfig::new().set_gcs_output_config(GcsOutputConfig::default()/* use setters */);
assert!(x.gcs_output_config().is_some());
assert!(x.inline_response_config().is_none());Sourcepub fn inline_response_config(&self) -> Option<&Box<InlineOutputConfig>>
pub fn inline_response_config(&self) -> Option<&Box<InlineOutputConfig>>
The value of output
if it holds a InlineResponseConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_inline_response_config<T: Into<Box<InlineOutputConfig>>>(
self,
v: T,
) -> Self
pub fn set_inline_response_config<T: Into<Box<InlineOutputConfig>>>( self, v: T, ) -> Self
Sets the value of output
to hold a InlineResponseConfig.
Note that all the setters affecting output are
mutually exclusive.
§Example
use google_cloud_speech_v2::model::InlineOutputConfig;
let x = RecognitionOutputConfig::new().set_inline_response_config(InlineOutputConfig::default()/* use setters */);
assert!(x.inline_response_config().is_some());
assert!(x.gcs_output_config().is_none());Trait Implementations§
Source§impl Clone for RecognitionOutputConfig
impl Clone for RecognitionOutputConfig
Source§fn clone(&self) -> RecognitionOutputConfig
fn clone(&self) -> RecognitionOutputConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecognitionOutputConfig
impl Debug for RecognitionOutputConfig
Source§impl Default for RecognitionOutputConfig
impl Default for RecognitionOutputConfig
Source§fn default() -> RecognitionOutputConfig
fn default() -> RecognitionOutputConfig
Source§impl Message for RecognitionOutputConfig
impl Message for RecognitionOutputConfig
Source§impl PartialEq for RecognitionOutputConfig
impl PartialEq for RecognitionOutputConfig
impl StructuralPartialEq for RecognitionOutputConfig
Auto Trait Implementations§
impl Freeze for RecognitionOutputConfig
impl RefUnwindSafe for RecognitionOutputConfig
impl Send for RecognitionOutputConfig
impl Sync for RecognitionOutputConfig
impl Unpin for RecognitionOutputConfig
impl UnsafeUnpin for RecognitionOutputConfig
impl UnwindSafe for RecognitionOutputConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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>
T in a tonic::Request