#[non_exhaustive]pub struct PurgeContextsResponse {
pub purge_count: i64,
pub purge_sample: Vec<String>,
/* private fields */
}Available on crate feature
metadata-service only.Expand description
Response 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.purge_count: i64The number of Contexts that this request deleted (or, if force is false,
the number of Contexts that will be deleted). This can be an estimate.
purge_sample: Vec<String>A sample of the Context names that will be deleted.
Only populated if force is set to false. The maximum number of samples is
100 (it is possible to return fewer).
Implementations§
Source§impl PurgeContextsResponse
impl PurgeContextsResponse
pub fn new() -> Self
Sourcepub fn set_purge_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_purge_count<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_purge_sample<T, V>(self, v: T) -> Self
pub fn set_purge_sample<T, V>(self, v: T) -> Self
Sets the value of purge_sample.
§Example
ⓘ
let x = PurgeContextsResponse::new().set_purge_sample(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for PurgeContextsResponse
impl Clone for PurgeContextsResponse
Source§fn clone(&self) -> PurgeContextsResponse
fn clone(&self) -> PurgeContextsResponse
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 PurgeContextsResponse
impl Debug for PurgeContextsResponse
Source§impl Default for PurgeContextsResponse
impl Default for PurgeContextsResponse
Source§fn default() -> PurgeContextsResponse
fn default() -> PurgeContextsResponse
Returns the “default value” for a type. Read more
Source§impl Message for PurgeContextsResponse
impl Message for PurgeContextsResponse
Source§impl PartialEq for PurgeContextsResponse
impl PartialEq for PurgeContextsResponse
impl StructuralPartialEq for PurgeContextsResponse
Auto Trait Implementations§
impl Freeze for PurgeContextsResponse
impl RefUnwindSafe for PurgeContextsResponse
impl Send for PurgeContextsResponse
impl Sync for PurgeContextsResponse
impl Unpin for PurgeContextsResponse
impl UnwindSafe for PurgeContextsResponse
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