#[non_exhaustive]pub struct DatasetInputConfig {
pub input_files: Vec<InputFile>,
/* private fields */
}Expand description
Input 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.input_files: Vec<InputFile>Files containing the sentence pairs to be imported to the dataset.
Implementations§
Source§impl DatasetInputConfig
impl DatasetInputConfig
pub fn new() -> Self
Sourcepub fn set_input_files<T, V>(self, v: T) -> Self
pub fn set_input_files<T, V>(self, v: T) -> Self
Sets the value of input_files.
§Example
ⓘ
use google_cloud_translation_v3::model::dataset_input_config::InputFile;
let x = DatasetInputConfig::new()
.set_input_files([
InputFile::default()/* use setters */,
InputFile::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for DatasetInputConfig
impl Clone for DatasetInputConfig
Source§fn clone(&self) -> DatasetInputConfig
fn clone(&self) -> DatasetInputConfig
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 DatasetInputConfig
impl Debug for DatasetInputConfig
Source§impl Default for DatasetInputConfig
impl Default for DatasetInputConfig
Source§fn default() -> DatasetInputConfig
fn default() -> DatasetInputConfig
Returns the “default value” for a type. Read more
Source§impl Message for DatasetInputConfig
impl Message for DatasetInputConfig
Source§impl PartialEq for DatasetInputConfig
impl PartialEq for DatasetInputConfig
impl StructuralPartialEq for DatasetInputConfig
Auto Trait Implementations§
impl Freeze for DatasetInputConfig
impl RefUnwindSafe for DatasetInputConfig
impl Send for DatasetInputConfig
impl Sync for DatasetInputConfig
impl Unpin for DatasetInputConfig
impl UnsafeUnpin for DatasetInputConfig
impl UnwindSafe for DatasetInputConfig
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