#[non_exhaustive]pub struct PurgeContextsRequest {
pub parent: String,
pub filter: String,
pub force: bool,
/* private fields */
}Available on crate feature
metadata-service only.Expand description
Request message for MetadataService.PurgeContexts.
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.parent: StringRequired. The metadata store to purge Contexts from.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}
filter: StringRequired. A required filter matching the Contexts to be purged.
E.g., update_time <= 2020-11-19T11:30:00-04:00.
force: boolOptional. Flag to indicate to actually perform the purge.
If force is set to false, the method will return a sample of
Context names that would be deleted.
Implementations§
Source§impl PurgeContextsRequest
impl PurgeContextsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for PurgeContextsRequest
impl Clone for PurgeContextsRequest
Source§fn clone(&self) -> PurgeContextsRequest
fn clone(&self) -> PurgeContextsRequest
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 PurgeContextsRequest
impl Debug for PurgeContextsRequest
Source§impl Default for PurgeContextsRequest
impl Default for PurgeContextsRequest
Source§fn default() -> PurgeContextsRequest
fn default() -> PurgeContextsRequest
Returns the “default value” for a type. Read more
Source§impl Message for PurgeContextsRequest
impl Message for PurgeContextsRequest
Source§impl PartialEq for PurgeContextsRequest
impl PartialEq for PurgeContextsRequest
impl StructuralPartialEq for PurgeContextsRequest
Auto Trait Implementations§
impl Freeze for PurgeContextsRequest
impl RefUnwindSafe for PurgeContextsRequest
impl Send for PurgeContextsRequest
impl Sync for PurgeContextsRequest
impl Unpin for PurgeContextsRequest
impl UnwindSafe for PurgeContextsRequest
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