pub struct ListGroups(/* private fields */);Expand description
The request builder for GroupService::list_groups calls.
§Example
use builder::group_service::ListGroups;
use gax::paginator::ItemPaginator;
let builder = prepare_request_builder();
let mut items = builder.by_item();
while let Some(result) = items.next().await {
let item = result?;
}
fn prepare_request_builder() -> ListGroups {
// ... details omitted ...
}Implementations§
Source§impl ListGroups
impl ListGroups
Sourcepub fn with_request<V: Into<ListGroupsRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<ListGroupsRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<ListGroupsResponse>
pub async fn send(self) -> Result<ListGroupsResponse>
Sends the request.
Sourcepub fn by_page(self) -> impl Paginator<ListGroupsResponse, Error>
pub fn by_page(self) -> impl Paginator<ListGroupsResponse, Error>
Streams each page in the collection.
Sourcepub fn by_item(self) -> impl ItemPaginator<ListGroupsResponse, Error>
pub fn by_item(self) -> impl ItemPaginator<ListGroupsResponse, Error>
Streams each item in the collection.
Sourcepub fn set_name<T: Into<String>>(self, v: T) -> Self
pub fn set_name<T: Into<String>>(self, v: T) -> Self
Sets the value of name.
This is a required field for requests.
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.
Note that all the setters affecting filter are
mutually exclusive.
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 ListGroups
impl Clone for ListGroups
Source§fn clone(&self) -> ListGroups
fn clone(&self) -> ListGroups
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ListGroups
impl !RefUnwindSafe for ListGroups
impl Send for ListGroups
impl Sync for ListGroups
impl Unpin for ListGroups
impl !UnwindSafe for ListGroups
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.