#[non_exhaustive]pub struct PurgeDocumentsResponse {
pub purge_count: i64,
pub purge_sample: Vec<String>,
/* private fields */
}Available on crate feature
document-service only.Expand description
Response message for DocumentService.PurgeDocuments method. If the long running operation is successfully done, then this message is returned by the google.longrunning.Operations.response field.
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 total count of documents purged as a result of the operation.
purge_sample: Vec<String>A sample of document names that will be deleted. Only populated if force
is set to false. A max of 100 names will be returned and the names are
chosen at random.
Implementations§
Source§impl PurgeDocumentsResponse
impl PurgeDocumentsResponse
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 = PurgeDocumentsResponse::new().set_purge_sample(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for PurgeDocumentsResponse
impl Clone for PurgeDocumentsResponse
Source§fn clone(&self) -> PurgeDocumentsResponse
fn clone(&self) -> PurgeDocumentsResponse
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 PurgeDocumentsResponse
impl Debug for PurgeDocumentsResponse
Source§impl Default for PurgeDocumentsResponse
impl Default for PurgeDocumentsResponse
Source§fn default() -> PurgeDocumentsResponse
fn default() -> PurgeDocumentsResponse
Returns the “default value” for a type. Read more
Source§impl Message for PurgeDocumentsResponse
impl Message for PurgeDocumentsResponse
Source§impl PartialEq for PurgeDocumentsResponse
impl PartialEq for PurgeDocumentsResponse
impl StructuralPartialEq for PurgeDocumentsResponse
Auto Trait Implementations§
impl Freeze for PurgeDocumentsResponse
impl RefUnwindSafe for PurgeDocumentsResponse
impl Send for PurgeDocumentsResponse
impl Sync for PurgeDocumentsResponse
impl Unpin for PurgeDocumentsResponse
impl UnwindSafe for PurgeDocumentsResponse
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