#[non_exhaustive]pub struct ListFoldersRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub show_deleted: bool,
}Expand description
The ListFolders request message.
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 name of the parent resource whose folders are being listed. Only children of this parent resource are listed; descendants are not listed.
If the parent is a folder, use the value folders/{folder_id}. If the
parent is an organization, use the value organizations/{org_id}.
Access to this method is controlled by checking the
resourcemanager.folders.list permission on the parent.
page_size: i32Optional. The maximum number of folders to return in the response. The server can return fewer folders than requested. If unspecified, server picks an appropriate default.
page_token: StringOptional. A pagination token returned from a previous call to ListFolders
that indicates where this listing should continue from.
show_deleted: boolOptional. Controls whether folders in the DELETE_REQUESTED state should be returned. Defaults to false.
Implementations§
Source§impl ListFoldersRequest
impl ListFoldersRequest
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_show_deleted<T: Into<bool>>(self, v: T) -> Self
pub fn set_show_deleted<T: Into<bool>>(self, v: T) -> Self
Sets the value of show_deleted.
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 more