#[non_exhaustive]pub struct ListBucketsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub prefix: String,
pub read_mask: Option<FieldMask>,
pub return_partial_success: bool,
/* private fields */
}Expand description
Request message for ListBuckets.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The project whose buckets we are listing.
page_size: i32Optional. Maximum number of buckets to return in a single response. The
service uses this parameter or 1,000 items, whichever is smaller. If
acl is present in the read_mask, the service uses this parameter of
200 items, whichever is smaller.
page_token: StringOptional. A previously-returned page token representing part of the larger set of results to view.
prefix: StringOptional. Filter results to buckets whose names begin with this prefix.
read_mask: Option<FieldMask>Mask specifying which fields to read from each result.
If no mask is specified, it defaults to all fields except items. owner, items.acl, and items.default_object_acl.
* might be used to mean “all fields”.
return_partial_success: boolOptional. Allows listing of buckets, even if there are buckets that are unreachable.
Implementations§
Source§impl ListBucketsRequest
impl ListBucketsRequest
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
Sets the value of parent.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Sourcepub fn set_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of prefix.
Sourcepub fn set_read_mask<T>(self, v: T) -> Self
pub fn set_read_mask<T>(self, v: T) -> Self
Sets the value of read_mask.
Sourcepub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of read_mask.
Sourcepub fn set_return_partial_success<T: Into<bool>>(self, v: T) -> Self
pub fn set_return_partial_success<T: Into<bool>>(self, v: T) -> Self
Sets the value of return_partial_success.
Trait Implementations§
Source§impl Clone for ListBucketsRequest
impl Clone for ListBucketsRequest
Source§fn clone(&self) -> ListBucketsRequest
fn clone(&self) -> ListBucketsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListBucketsRequest
impl Debug for ListBucketsRequest
Source§impl Default for ListBucketsRequest
impl Default for ListBucketsRequest
Source§fn default() -> ListBucketsRequest
fn default() -> ListBucketsRequest
Source§impl Message for ListBucketsRequest
impl Message for ListBucketsRequest
Source§impl PartialEq for ListBucketsRequest
impl PartialEq for ListBucketsRequest
impl StructuralPartialEq for ListBucketsRequest
Auto Trait Implementations§
impl Freeze for ListBucketsRequest
impl RefUnwindSafe for ListBucketsRequest
impl Send for ListBucketsRequest
impl Sync for ListBucketsRequest
impl Unpin for ListBucketsRequest
impl UnwindSafe for ListBucketsRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request