#[non_exhaustive]pub struct MoveRepositoryMetadata {
pub create_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub target: String,
pub state: State,
pub percent_complete: i32,
/* private fields */
}Expand description
Contains metadata about the progress of the MoveRepository Long-running operations.
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>Output only. The time the operation was created.
end_time: Option<Timestamp>Output only. The time the operation finished running.
target: StringOutput only. Server-defined resource path for the target of the operation.
state: StateThe state of the move.
percent_complete: i32Percent complete of the move [0, 100].
Implementations§
Source§impl MoveRepositoryMetadata
impl MoveRepositoryMetadata
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 = MoveRepositoryMetadata::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 = MoveRepositoryMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = MoveRepositoryMetadata::new().set_or_clear_create_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
Sourcepub fn set_target<T: Into<String>>(self, v: T) -> Self
pub fn set_target<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_state<T: Into<State>>(self, v: T) -> Self
pub fn set_state<T: Into<State>>(self, v: T) -> Self
Sets the value of state.
§Example
ⓘ
use google_cloud_dataform_v1::model::move_repository_metadata::State;
let x0 = MoveRepositoryMetadata::new().set_state(State::Initialized);
let x1 = MoveRepositoryMetadata::new().set_state(State::InProgress);
let x2 = MoveRepositoryMetadata::new().set_state(State::Success);Sourcepub fn set_percent_complete<T: Into<i32>>(self, v: T) -> Self
pub fn set_percent_complete<T: Into<i32>>(self, v: T) -> Self
Sets the value of percent_complete.
§Example
ⓘ
let x = MoveRepositoryMetadata::new().set_percent_complete(42);Trait Implementations§
Source§impl Clone for MoveRepositoryMetadata
impl Clone for MoveRepositoryMetadata
Source§fn clone(&self) -> MoveRepositoryMetadata
fn clone(&self) -> MoveRepositoryMetadata
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 MoveRepositoryMetadata
impl Debug for MoveRepositoryMetadata
Source§impl Default for MoveRepositoryMetadata
impl Default for MoveRepositoryMetadata
Source§fn default() -> MoveRepositoryMetadata
fn default() -> MoveRepositoryMetadata
Returns the “default value” for a type. Read more
Source§impl Message for MoveRepositoryMetadata
impl Message for MoveRepositoryMetadata
Source§impl PartialEq for MoveRepositoryMetadata
impl PartialEq for MoveRepositoryMetadata
impl StructuralPartialEq for MoveRepositoryMetadata
Auto Trait Implementations§
impl Freeze for MoveRepositoryMetadata
impl RefUnwindSafe for MoveRepositoryMetadata
impl Send for MoveRepositoryMetadata
impl Sync for MoveRepositoryMetadata
impl Unpin for MoveRepositoryMetadata
impl UnsafeUnpin for MoveRepositoryMetadata
impl UnwindSafe for MoveRepositoryMetadata
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