#[non_exhaustive]pub struct UpdateSchemaBundleMetadata {
pub name: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}Expand description
The metadata for the Operation returned by UpdateSchemaBundle.
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: StringThe unique name identifying this schema bundle.
Values are of the form
projects/{project}/instances/{instance}/tables/{table}/schemaBundles/{schema_bundle}
start_time: Option<Timestamp>The time at which this operation started.
end_time: Option<Timestamp>If set, the time at which this operation finished or was canceled.
Implementations§
Source§impl UpdateSchemaBundleMetadata
impl UpdateSchemaBundleMetadata
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UpdateSchemaBundleMetadata::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = UpdateSchemaBundleMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = UpdateSchemaBundleMetadata::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for UpdateSchemaBundleMetadata
impl Clone for UpdateSchemaBundleMetadata
Source§fn clone(&self) -> UpdateSchemaBundleMetadata
fn clone(&self) -> UpdateSchemaBundleMetadata
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 UpdateSchemaBundleMetadata
impl Debug for UpdateSchemaBundleMetadata
Source§impl Default for UpdateSchemaBundleMetadata
impl Default for UpdateSchemaBundleMetadata
Source§fn default() -> UpdateSchemaBundleMetadata
fn default() -> UpdateSchemaBundleMetadata
Returns the “default value” for a type. Read more
Source§impl Message for UpdateSchemaBundleMetadata
impl Message for UpdateSchemaBundleMetadata
impl StructuralPartialEq for UpdateSchemaBundleMetadata
Auto Trait Implementations§
impl Freeze for UpdateSchemaBundleMetadata
impl RefUnwindSafe for UpdateSchemaBundleMetadata
impl Send for UpdateSchemaBundleMetadata
impl Sync for UpdateSchemaBundleMetadata
impl Unpin for UpdateSchemaBundleMetadata
impl UnwindSafe for UpdateSchemaBundleMetadata
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