#[non_exhaustive]pub struct DeleteFolderTreeMetadata {
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 DeleteFolderTree 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. Resource name of the target of the operation. Format: projects/{project}/locations/{location}/folders/{folder} or projects/{project}/locations/{location}/teamFolders/{team_folder}
state: StateOutput only. The state of the operation.
percent_complete: i32Output only. Percent complete of the operation [0, 100].
Implementations§
Source§impl DeleteFolderTreeMetadata
impl DeleteFolderTreeMetadata
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 = DeleteFolderTreeMetadata::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 = DeleteFolderTreeMetadata::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = DeleteFolderTreeMetadata::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::delete_folder_tree_metadata::State;
let x0 = DeleteFolderTreeMetadata::new().set_state(State::Initialized);
let x1 = DeleteFolderTreeMetadata::new().set_state(State::InProgress);
let x2 = DeleteFolderTreeMetadata::new().set_state(State::Succeeded);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 = DeleteFolderTreeMetadata::new().set_percent_complete(42);Trait Implementations§
Source§impl Clone for DeleteFolderTreeMetadata
impl Clone for DeleteFolderTreeMetadata
Source§fn clone(&self) -> DeleteFolderTreeMetadata
fn clone(&self) -> DeleteFolderTreeMetadata
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 DeleteFolderTreeMetadata
impl Debug for DeleteFolderTreeMetadata
Source§impl Default for DeleteFolderTreeMetadata
impl Default for DeleteFolderTreeMetadata
Source§fn default() -> DeleteFolderTreeMetadata
fn default() -> DeleteFolderTreeMetadata
Returns the “default value” for a type. Read more
Source§impl Message for DeleteFolderTreeMetadata
impl Message for DeleteFolderTreeMetadata
Source§impl PartialEq for DeleteFolderTreeMetadata
impl PartialEq for DeleteFolderTreeMetadata
impl StructuralPartialEq for DeleteFolderTreeMetadata
Auto Trait Implementations§
impl Freeze for DeleteFolderTreeMetadata
impl RefUnwindSafe for DeleteFolderTreeMetadata
impl Send for DeleteFolderTreeMetadata
impl Sync for DeleteFolderTreeMetadata
impl Unpin for DeleteFolderTreeMetadata
impl UnsafeUnpin for DeleteFolderTreeMetadata
impl UnwindSafe for DeleteFolderTreeMetadata
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