pub struct UserClient { /* private fields */ }Expand description
Calls UserService.
The signed-in user. Each user can read only their own profile, by the
name users/me or by their own id; the role bindings they hold are
listed by ListRoleBindings with the parent organizations/-.
Implementations§
Source§impl UserClient
impl UserClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of UserService 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.
Trait Implementations§
Source§impl Clone for UserClient
impl Clone for UserClient
Auto Trait Implementations§
impl !RefUnwindSafe for UserClient
impl !UnwindSafe for UserClient
impl Forget for UserClient
impl Freeze for UserClient
impl Move for UserClient
impl Send for UserClient
impl Sync for UserClient
impl Unpin for UserClient
impl UnsafeUnpin for UserClient
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