#[non_exhaustive]pub struct DatasetOutputConfig {
pub destination: Option<Destination>,
/* private fields */
}Expand description
Output configuration for datasets.
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.destination: Option<Destination>Required. Specify the output.
Implementations§
Source§impl DatasetOutputConfig
impl DatasetOutputConfig
pub fn new() -> Self
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
§Example
ⓘ
use google_cloud_translation_v3::model::GcsOutputDestination;
let x = DatasetOutputConfig::new().set_destination(Some(
google_cloud_translation_v3::model::dataset_output_config::Destination::GcsDestination(GcsOutputDestination::default().into())));Sourcepub fn gcs_destination(&self) -> Option<&Box<GcsOutputDestination>>
pub fn gcs_destination(&self) -> Option<&Box<GcsOutputDestination>>
The value of destination
if it holds a GcsDestination, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_destination<T: Into<Box<GcsOutputDestination>>>(
self,
v: T,
) -> Self
pub fn set_gcs_destination<T: Into<Box<GcsOutputDestination>>>( self, v: T, ) -> Self
Sets the value of destination
to hold a GcsDestination.
Note that all the setters affecting destination are
mutually exclusive.
§Example
ⓘ
use google_cloud_translation_v3::model::GcsOutputDestination;
let x = DatasetOutputConfig::new().set_gcs_destination(GcsOutputDestination::default()/* use setters */);
assert!(x.gcs_destination().is_some());Trait Implementations§
Source§impl Clone for DatasetOutputConfig
impl Clone for DatasetOutputConfig
Source§fn clone(&self) -> DatasetOutputConfig
fn clone(&self) -> DatasetOutputConfig
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 DatasetOutputConfig
impl Debug for DatasetOutputConfig
Source§impl Default for DatasetOutputConfig
impl Default for DatasetOutputConfig
Source§fn default() -> DatasetOutputConfig
fn default() -> DatasetOutputConfig
Returns the “default value” for a type. Read more
Source§impl Message for DatasetOutputConfig
impl Message for DatasetOutputConfig
Source§impl PartialEq for DatasetOutputConfig
impl PartialEq for DatasetOutputConfig
impl StructuralPartialEq for DatasetOutputConfig
Auto Trait Implementations§
impl Freeze for DatasetOutputConfig
impl RefUnwindSafe for DatasetOutputConfig
impl Send for DatasetOutputConfig
impl Sync for DatasetOutputConfig
impl Unpin for DatasetOutputConfig
impl UnsafeUnpin for DatasetOutputConfig
impl UnwindSafe for DatasetOutputConfig
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