pub struct AuthenticationServiceV2AsyncClient<T>(/* private fields */);
Expand description
This service provides operations for managing user and org profiles/settings. Its name is a bit of a misnomer.
Implementations§
Source§impl<T> AuthenticationServiceV2AsyncClient<T>where
T: AsyncClient,
impl<T> AuthenticationServiceV2AsyncClient<T>where
T: AsyncClient,
Sourcepub async fn get_my_profile(&self, auth_: &BearerToken) -> Result<UserV2, Error>
pub async fn get_my_profile(&self, auth_: &BearerToken) -> Result<UserV2, Error>
Gets the profile of the authenticated user.
Sourcepub async fn update_my_profile(
&self,
auth_: &BearerToken,
update_my_profile_request: &UpdateMyProfileRequest,
) -> Result<UserV2, Error>
pub async fn update_my_profile( &self, auth_: &BearerToken, update_my_profile_request: &UpdateMyProfileRequest, ) -> Result<UserV2, Error>
Updates the profile of the authenticated user.
Sourcepub async fn get_my_settings(
&self,
auth_: &BearerToken,
) -> Result<UserSettings, Error>
pub async fn get_my_settings( &self, auth_: &BearerToken, ) -> Result<UserSettings, Error>
Gets the settings of the authenticated user.
Sourcepub async fn update_my_settings(
&self,
auth_: &BearerToken,
user_settings: &UserSettings,
) -> Result<UserSettings, Error>
pub async fn update_my_settings( &self, auth_: &BearerToken, user_settings: &UserSettings, ) -> Result<UserSettings, Error>
Updates the settings of the authenticated user.
Sourcepub async fn get_my_org_settings(
&self,
auth_: &BearerToken,
) -> Result<OrgSettings, Error>
pub async fn get_my_org_settings( &self, auth_: &BearerToken, ) -> Result<OrgSettings, Error>
Gets the settings of the org of the authenticated user.
Sourcepub async fn update_my_org_settings(
&self,
auth_: &BearerToken,
org_settings: &OrgSettings,
) -> Result<OrgSettings, Error>
pub async fn update_my_org_settings( &self, auth_: &BearerToken, org_settings: &OrgSettings, ) -> Result<OrgSettings, Error>
Updates the settings of the org of the authenticated user.
Sourcepub async fn search_users_v2(
&self,
auth_: &BearerToken,
request: &SearchUsersRequest,
) -> Result<SearchUsersResponseV2, Error>
pub async fn search_users_v2( &self, auth_: &BearerToken, request: &SearchUsersRequest, ) -> Result<SearchUsersResponseV2, Error>
Searches for users by email and displayName.
Trait Implementations§
Source§impl<T> AsyncService<T> for AuthenticationServiceV2AsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for AuthenticationServiceV2AsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for AuthenticationServiceV2AsyncClient<T>
impl<T: Clone> Clone for AuthenticationServiceV2AsyncClient<T>
Source§fn clone(&self) -> AuthenticationServiceV2AsyncClient<T>
fn clone(&self) -> AuthenticationServiceV2AsyncClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for AuthenticationServiceV2AsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for AuthenticationServiceV2AsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for AuthenticationServiceV2AsyncClient<T>where
T: Send,
impl<T> Sync for AuthenticationServiceV2AsyncClient<T>where
T: Sync,
impl<T> Unpin for AuthenticationServiceV2AsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for AuthenticationServiceV2AsyncClient<T>where
T: UnwindSafe,
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request