#[non_exhaustive]pub struct ListCustomClassesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub show_deleted: bool,
/* private fields */
}Expand description
Request message for the ListCustomClasses method.
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 and location of CustomClass resources to list. The
expected format is projects/{project}/locations/{location}.
page_size: i32Number of results per requests. A valid page_size ranges from 0 to 100 inclusive. If the page_size is zero or unspecified, a page size of 5 will be chosen. If the page size exceeds 100, it will be coerced down to 100. Note that a call might return fewer results than the requested page size.
page_token: StringA page token, received from a previous ListCustomClasses call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListCustomClasses must match the call that provided the page token.
show_deleted: boolWhether, or not, to show resources that have been deleted.
Implementations§
Source§impl ListCustomClassesRequest
impl ListCustomClassesRequest
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 = ListCustomClassesRequest::new().set_page_token("example");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.
§Example
let x = ListCustomClassesRequest::new().set_show_deleted(true);Trait Implementations§
Source§impl Clone for ListCustomClassesRequest
impl Clone for ListCustomClassesRequest
Source§fn clone(&self) -> ListCustomClassesRequest
fn clone(&self) -> ListCustomClassesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more