#[non_exhaustive]pub struct ListFoldersRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub prefix: String,
pub delimiter: String,
pub lexicographic_start: String,
pub lexicographic_end: String,
pub request_id: String,
/* private fields */
}Expand description
Request message for ListFolders. This operation is only applicable to a hierarchical namespace enabled bucket.
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. Name of the bucket in which to look for folders. The bucket must be a hierarchical namespace enabled bucket.
page_size: i32Optional. Maximum number of folders to return in a single response. The service will use this parameter or 1,000 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 folders whose names begin with this prefix. If set, the value must either be an empty string or end with a ‘/’.
delimiter: StringOptional. If set, returns results in a directory-like mode. The results will only include folders that either exactly match the above prefix, or are one level below the prefix. The only supported value is ‘/’.
lexicographic_start: StringOptional. Filter results to folders whose names are lexicographically equal to or after lexicographic_start. If lexicographic_end is also set, the folders listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).
lexicographic_end: StringOptional. Filter results to folders whose names are lexicographically before lexicographic_end. If lexicographic_start is also set, the folders listed have names between lexicographic_start (inclusive) and lexicographic_end (exclusive).
request_id: StringOptional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted.
Implementations§
Source§impl ListFoldersRequest
impl ListFoldersRequest
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_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
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.
§Example
let x = ListFoldersRequest::new().set_page_token("example");Sourcepub fn set_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_prefix<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_delimiter<T: Into<String>>(self, v: T) -> Self
pub fn set_delimiter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_lexicographic_start<T: Into<String>>(self, v: T) -> Self
pub fn set_lexicographic_start<T: Into<String>>(self, v: T) -> Self
Sets the value of lexicographic_start.
§Example
let x = ListFoldersRequest::new().set_lexicographic_start("example");Sourcepub fn set_lexicographic_end<T: Into<String>>(self, v: T) -> Self
pub fn set_lexicographic_end<T: Into<String>>(self, v: T) -> Self
Sets the value of lexicographic_end.
§Example
let x = ListFoldersRequest::new().set_lexicographic_end("example");Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
§Example
let x = ListFoldersRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for ListFoldersRequest
impl Clone for ListFoldersRequest
Source§fn clone(&self) -> ListFoldersRequest
fn clone(&self) -> ListFoldersRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListFoldersRequest
impl Debug for ListFoldersRequest
Source§impl Default for ListFoldersRequest
impl Default for ListFoldersRequest
Source§fn default() -> ListFoldersRequest
fn default() -> ListFoldersRequest
Source§impl Message for ListFoldersRequest
impl Message for ListFoldersRequest
Source§impl PartialEq for ListFoldersRequest
impl PartialEq for ListFoldersRequest
impl StructuralPartialEq for ListFoldersRequest
Auto Trait Implementations§
impl Freeze for ListFoldersRequest
impl RefUnwindSafe for ListFoldersRequest
impl Send for ListFoldersRequest
impl Sync for ListFoldersRequest
impl Unpin for ListFoldersRequest
impl UnwindSafe for ListFoldersRequest
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