pub struct UserProfiles<'a> { /* private fields */ }Available on crate feature
user-profiles only.Expand description
Namespace handle for the User Profiles API.
Obtained via Client::user_profiles.
Implementations§
Source§impl<'a> UserProfiles<'a>
impl<'a> UserProfiles<'a>
Sourcepub async fn create(
&self,
request: CreateUserProfileRequest,
) -> Result<UserProfile>
pub async fn create( &self, request: CreateUserProfileRequest, ) -> Result<UserProfile>
POST /v1/user_profiles.
Sourcepub async fn list(
&self,
params: ListUserProfilesParams,
) -> Result<PaginatedNextPage<UserProfile>>
pub async fn list( &self, params: ListUserProfilesParams, ) -> Result<PaginatedNextPage<UserProfile>>
GET /v1/user_profiles.
Sourcepub async fn get(&self, user_profile_id: &str) -> Result<UserProfile>
pub async fn get(&self, user_profile_id: &str) -> Result<UserProfile>
GET /v1/user_profiles/{user_profile_id}.
Sourcepub async fn update(
&self,
user_profile_id: &str,
request: UpdateUserProfileRequest,
) -> Result<UserProfile>
pub async fn update( &self, user_profile_id: &str, request: UpdateUserProfileRequest, ) -> Result<UserProfile>
POST /v1/user_profiles/{user_profile_id} – update with merge
semantics on metadata.
Sourcepub async fn create_enrollment_url(
&self,
user_profile_id: &str,
) -> Result<EnrollmentUrl>
pub async fn create_enrollment_url( &self, user_profile_id: &str, ) -> Result<EnrollmentUrl>
POST /v1/user_profiles/{user_profile_id}/enrollment_url –
mint a short-lived URL the end user can visit to complete
trust-grant enrollment.
Auto Trait Implementations§
impl<'a> Freeze for UserProfiles<'a>
impl<'a> !RefUnwindSafe for UserProfiles<'a>
impl<'a> Send for UserProfiles<'a>
impl<'a> Sync for UserProfiles<'a>
impl<'a> Unpin for UserProfiles<'a>
impl<'a> UnsafeUnpin for UserProfiles<'a>
impl<'a> !UnwindSafe for UserProfiles<'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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.