pub struct RoleClient { /* private fields */ }Expand description
Calls RoleService.
The catalog of predefined roles. A role is a named set of permissions; a role binding grants one to a principal in an organization or in one of its projects. The same for every caller: any authenticated caller can read it, and no permission is needed.
Implementations§
Source§impl RoleClient
impl RoleClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of RoleService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
Sourcepub async fn list_roles(
&self,
request: ListRolesRequest,
) -> Result<ListRolesResponse, Error>
pub async fn list_roles( &self, request: ListRolesRequest, ) -> Result<ListRolesResponse, Error>
Lists every predefined role, in catalog order.
Trait Implementations§
Source§impl Clone for RoleClient
impl Clone for RoleClient
Auto Trait Implementations§
impl !RefUnwindSafe for RoleClient
impl !UnwindSafe for RoleClient
impl Forget for RoleClient
impl Freeze for RoleClientwhere
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for RoleClient
impl Send for RoleClient
impl Sync for RoleClient
impl Unpin for RoleClient
impl UnsafeUnpin for RoleClientwhere
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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
Mutably borrows from an owned value. Read more