Struct gusto_api::current_user::CurrentUser
source · pub struct CurrentUser {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl CurrentUser
impl CurrentUser
sourcepub async fn get_me(&self) -> Result<Response<CurrentUser>, ClientError>
pub async fn get_me(&self) -> Result<Response<CurrentUser>, ClientError>
Get the current user.
This function performs a GET
to the /v1/me
endpoint.
Returns information pertaining to the user associated with the provided access token.
Auto Trait Implementations§
impl !RefUnwindSafe for CurrentUser
impl Send for CurrentUser
impl Sync for CurrentUser
impl Unpin for CurrentUser
impl !UnwindSafe for CurrentUser
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