#[non_exhaustive]pub struct CreateProjectMetadata {
pub create_time: Option<Timestamp>,
pub gettable: bool,
pub ready: bool,
/* private fields */
}Expand description
A status object which is used as the metadata field for the Operation
returned by CreateProject. It provides insight for when significant phases of
Project creation have completed.
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.create_time: Option<Timestamp>Creation time of the project creation workflow.
gettable: boolTrue if the project can be retrieved using GetProject. No other
operations on the project are guaranteed to work until the project creation
is complete.
ready: boolTrue if the project creation process is complete.
Implementations§
Source§impl CreateProjectMetadata
impl CreateProjectMetadata
pub fn new() -> 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 = CreateProjectMetadata::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 = CreateProjectMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = CreateProjectMetadata::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_gettable<T: Into<bool>>(self, v: T) -> Self
pub fn set_gettable<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CreateProjectMetadata
impl Clone for CreateProjectMetadata
Source§fn clone(&self) -> CreateProjectMetadata
fn clone(&self) -> CreateProjectMetadata
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 CreateProjectMetadata
impl Debug for CreateProjectMetadata
Source§impl Default for CreateProjectMetadata
impl Default for CreateProjectMetadata
Source§fn default() -> CreateProjectMetadata
fn default() -> CreateProjectMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CreateProjectMetadata
impl Message for CreateProjectMetadata
Source§impl PartialEq for CreateProjectMetadata
impl PartialEq for CreateProjectMetadata
impl StructuralPartialEq for CreateProjectMetadata
Auto Trait Implementations§
impl Freeze for CreateProjectMetadata
impl RefUnwindSafe for CreateProjectMetadata
impl Send for CreateProjectMetadata
impl Sync for CreateProjectMetadata
impl Unpin for CreateProjectMetadata
impl UnwindSafe for CreateProjectMetadata
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