pub struct GetMe<'a> { /* private fields */ }
Expand description
Builder for Client::get_me
Implementations§
Source§impl<'a> GetMe<'a>
impl<'a> GetMe<'a>
pub fn new(client: &'a Client) -> Self
Sourcepub async fn send(
self,
) -> Result<ResponseValue<UserWithRoles>, Error<ErrorResponse>>
pub async fn send( self, ) -> Result<ResponseValue<UserWithRoles>, Error<ErrorResponse>>
Sends a GET
request to /v1/users/me
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetMe<'a>
impl<'a> !RefUnwindSafe for GetMe<'a>
impl<'a> Send for GetMe<'a>
impl<'a> Sync for GetMe<'a>
impl<'a> Unpin for GetMe<'a>
impl<'a> !UnwindSafe for GetMe<'a>
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