#[non_exhaustive]pub struct MoveFolderMetadata {
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 MoveFolder 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 MoveFolderMetadata
impl MoveFolderMetadata
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 = MoveFolderMetadata::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 = MoveFolderMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = MoveFolderMetadata::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_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 = MoveFolderMetadata::new().set_percent_complete(42);Trait Implementations§
Source§impl Clone for MoveFolderMetadata
impl Clone for MoveFolderMetadata
Source§fn clone(&self) -> MoveFolderMetadata
fn clone(&self) -> MoveFolderMetadata
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 MoveFolderMetadata
impl Debug for MoveFolderMetadata
Source§impl Default for MoveFolderMetadata
impl Default for MoveFolderMetadata
Source§fn default() -> MoveFolderMetadata
fn default() -> MoveFolderMetadata
Returns the “default value” for a type. Read more
Source§impl Message for MoveFolderMetadata
impl Message for MoveFolderMetadata
Source§impl PartialEq for MoveFolderMetadata
impl PartialEq for MoveFolderMetadata
impl StructuralPartialEq for MoveFolderMetadata
Auto Trait Implementations§
impl Freeze for MoveFolderMetadata
impl RefUnwindSafe for MoveFolderMetadata
impl Send for MoveFolderMetadata
impl Sync for MoveFolderMetadata
impl Unpin for MoveFolderMetadata
impl UnsafeUnpin for MoveFolderMetadata
impl UnwindSafe for MoveFolderMetadata
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