#[non_exhaustive]pub struct AdaptiveMtFile {
pub name: String,
pub display_name: String,
pub entry_count: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
/* private fields */
}Expand description
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.name: StringRequired. The resource name of the file, in form of
projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}
display_name: StringThe file’s display name.
entry_count: i32The number of entries that the file contains.
create_time: Option<Timestamp>Output only. Timestamp when this file was created.
update_time: Option<Timestamp>Output only. Timestamp when this file was last updated.
Implementations§
Source§impl AdaptiveMtFile
impl AdaptiveMtFile
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = AdaptiveMtFile::new().set_display_name("example");Sourcepub fn set_entry_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_entry_count<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = AdaptiveMtFile::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = AdaptiveMtFile::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = AdaptiveMtFile::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = AdaptiveMtFile::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = AdaptiveMtFile::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = AdaptiveMtFile::new().set_or_clear_update_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for AdaptiveMtFile
impl Clone for AdaptiveMtFile
Source§fn clone(&self) -> AdaptiveMtFile
fn clone(&self) -> AdaptiveMtFile
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 AdaptiveMtFile
impl Debug for AdaptiveMtFile
Source§impl Default for AdaptiveMtFile
impl Default for AdaptiveMtFile
Source§fn default() -> AdaptiveMtFile
fn default() -> AdaptiveMtFile
Returns the “default value” for a type. Read more
Source§impl Message for AdaptiveMtFile
impl Message for AdaptiveMtFile
Source§impl PartialEq for AdaptiveMtFile
impl PartialEq for AdaptiveMtFile
impl StructuralPartialEq for AdaptiveMtFile
Auto Trait Implementations§
impl Freeze for AdaptiveMtFile
impl RefUnwindSafe for AdaptiveMtFile
impl Send for AdaptiveMtFile
impl Sync for AdaptiveMtFile
impl Unpin for AdaptiveMtFile
impl UnsafeUnpin for AdaptiveMtFile
impl UnwindSafe for AdaptiveMtFile
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