#[non_exhaustive]pub struct ImportAdaptiveMtFileResponse {
pub adaptive_mt_file: Option<AdaptiveMtFile>,
/* private fields */
}Expand description
The response for importing an AdaptiveMtFile
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.adaptive_mt_file: Option<AdaptiveMtFile>Output only. The Adaptive MT file that was imported.
Implementations§
Source§impl ImportAdaptiveMtFileResponse
impl ImportAdaptiveMtFileResponse
pub fn new() -> Self
Sourcepub fn set_adaptive_mt_file<T>(self, v: T) -> Selfwhere
T: Into<AdaptiveMtFile>,
pub fn set_adaptive_mt_file<T>(self, v: T) -> Selfwhere
T: Into<AdaptiveMtFile>,
Sets the value of adaptive_mt_file.
§Example
ⓘ
use google_cloud_translation_v3::model::AdaptiveMtFile;
let x = ImportAdaptiveMtFileResponse::new().set_adaptive_mt_file(AdaptiveMtFile::default()/* use setters */);Sourcepub fn set_or_clear_adaptive_mt_file<T>(self, v: Option<T>) -> Selfwhere
T: Into<AdaptiveMtFile>,
pub fn set_or_clear_adaptive_mt_file<T>(self, v: Option<T>) -> Selfwhere
T: Into<AdaptiveMtFile>,
Sets or clears the value of adaptive_mt_file.
§Example
ⓘ
use google_cloud_translation_v3::model::AdaptiveMtFile;
let x = ImportAdaptiveMtFileResponse::new().set_or_clear_adaptive_mt_file(Some(AdaptiveMtFile::default()/* use setters */));
let x = ImportAdaptiveMtFileResponse::new().set_or_clear_adaptive_mt_file(None::<AdaptiveMtFile>);Trait Implementations§
Source§impl Clone for ImportAdaptiveMtFileResponse
impl Clone for ImportAdaptiveMtFileResponse
Source§fn clone(&self) -> ImportAdaptiveMtFileResponse
fn clone(&self) -> ImportAdaptiveMtFileResponse
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 ImportAdaptiveMtFileResponse
impl Debug for ImportAdaptiveMtFileResponse
Source§impl Default for ImportAdaptiveMtFileResponse
impl Default for ImportAdaptiveMtFileResponse
Source§fn default() -> ImportAdaptiveMtFileResponse
fn default() -> ImportAdaptiveMtFileResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportAdaptiveMtFileResponse
impl PartialEq for ImportAdaptiveMtFileResponse
Source§fn eq(&self, other: &ImportAdaptiveMtFileResponse) -> bool
fn eq(&self, other: &ImportAdaptiveMtFileResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportAdaptiveMtFileResponse
Auto Trait Implementations§
impl Freeze for ImportAdaptiveMtFileResponse
impl RefUnwindSafe for ImportAdaptiveMtFileResponse
impl Send for ImportAdaptiveMtFileResponse
impl Sync for ImportAdaptiveMtFileResponse
impl Unpin for ImportAdaptiveMtFileResponse
impl UnsafeUnpin for ImportAdaptiveMtFileResponse
impl UnwindSafe for ImportAdaptiveMtFileResponse
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