#[non_exhaustive]pub struct ListGroupsRequest {
    pub name: String,
    pub page_size: i32,
    pub page_token: String,
    pub filter: Option<Filter>,
}Expand description
The ListGroup request.
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.name: StringRequired. The project whose groups are to be listed. The format is:
projects/[PROJECT_ID_OR_NUMBER]page_size: i32A positive number that is the maximum number of results to return.
page_token: StringIf this field is not empty then it must contain the next_page_token value
returned by a previous call to this method.  Using this field causes the
method to return additional results from the previous method call.
filter: Option<Filter>An optional filter consisting of a single group name. The filters limit the groups returned based on their parent-child relationship with the specified group. If no filter is specified, all groups are returned.
Implementations§
Source§impl ListGroupsRequest
 
impl ListGroupsRequest
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_filter<T: Into<Option<Filter>>>(self, v: T) -> Self
 
pub fn set_filter<T: Into<Option<Filter>>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn get_children_of_group(&self) -> Option<&String>
 
pub fn get_children_of_group(&self) -> Option<&String>
The value of filter
if it holds a ChildrenOfGroup, None if the field is not set or
holds a different branch.
Sourcepub fn get_ancestors_of_group(&self) -> Option<&String>
 
pub fn get_ancestors_of_group(&self) -> Option<&String>
The value of filter
if it holds a AncestorsOfGroup, None if the field is not set or
holds a different branch.
Sourcepub fn get_descendants_of_group(&self) -> Option<&String>
 
pub fn get_descendants_of_group(&self) -> Option<&String>
The value of filter
if it holds a DescendantsOfGroup, None if the field is not set or
holds a different branch.
Sourcepub fn set_children_of_group<T: Into<String>>(self, v: T) -> Self
 
pub fn set_children_of_group<T: Into<String>>(self, v: T) -> Self
Sets the value of filter
to hold a ChildrenOfGroup.
Note that all the setters affecting filter are
mutually exclusive.
Sourcepub fn set_ancestors_of_group<T: Into<String>>(self, v: T) -> Self
 
pub fn set_ancestors_of_group<T: Into<String>>(self, v: T) -> Self
Sets the value of filter
to hold a AncestorsOfGroup.
Note that all the setters affecting filter are
mutually exclusive.
Sourcepub fn set_descendants_of_group<T: Into<String>>(self, v: T) -> Self
 
pub fn set_descendants_of_group<T: Into<String>>(self, v: T) -> Self
Sets the value of filter
to hold a DescendantsOfGroup.
Note that all the setters affecting filter are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ListGroupsRequest
 
impl Clone for ListGroupsRequest
Source§fn clone(&self) -> ListGroupsRequest
 
fn clone(&self) -> ListGroupsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more