Struct okta::users::Users

source ·
pub struct Users {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

source§

impl Users

source

pub async fn list( &self, q: &str, after: &str, limit: i64, filter: &str, search: &str, sort_by: &str, sort_order: &str ) -> Result<Response<Vec<User>>, ClientError>

List Users.

This function performs a GET to the /api/v1/users endpoint.

Lists users in your organization with pagination in most cases. A subset of users can be returned that match a supported filter expression or search criteria.

Parameters:

  • q: &str – Finds a user that matches firstName, lastName, and email properties.
  • after: &str – Specifies the pagination cursor for the next page of users.
  • limit: i64 – Specifies the number of results returned.
  • filter: &str – Filters users with a supported expression for a subset of properties.
  • search: &str – Searches for users with a supported filtering expression for most properties.
  • sort_by: &str
  • sort_order: &str
source

pub async fn list_all( &self, q: &str, filter: &str, search: &str, sort_by: &str, sort_order: &str ) -> Result<Response<Vec<User>>, ClientError>

List Users.

This function performs a GET to the /api/v1/users endpoint.

As opposed to list, this function returns all the pages of the request at once.

Lists users in your organization with pagination in most cases. A subset of users can be returned that match a supported filter expression or search criteria.

source

pub async fn create( &self, activate: bool, provider: bool, next_login: &str, body: &CreateUserRequest ) -> Result<Response<User>, ClientError>

Create User.

This function performs a POST to the /api/v1/users endpoint.

Creates a new user in your Okta organization with or without credentials.

Parameters:

  • activate: bool – Executes activation lifecycle operation when creating the user.
  • provider: bool – Indicates whether to create a user with a specified authentication provider.
  • next_login: &str – With activate=true, set nextLogin to “changePassword” to have the password be EXPIRED, so user must change it the next time they log in.
source

pub async fn set_linked_object_for( &self, associated_user_id: &str, primary_relationship_name: &str, primary_user_id: &str ) -> Result<Response<()>, ClientError>

This function performs a PUT to the /api/v1/users/{associatedUserId}/linkedObjects/{primaryRelationshipName}/{primaryUserId} endpoint.

Parameters:

  • associated_user_id: &str
  • primary_relationship_name: &str
  • primary_user_id: &str
source

pub async fn get(&self, user_id: &str) -> Result<Response<User>, ClientError>

Get User.

This function performs a GET to the /api/v1/users/{userId} endpoint.

Fetches a user from your Okta organization.

Parameters:

  • user_id: &str
source

pub async fn update( &self, user_id: &str, strict: bool, body: &User ) -> Result<Response<User>, ClientError>

Update User.

This function performs a PUT to the /api/v1/users/{userId} endpoint.

Update a user’s profile and/or credentials using strict-update semantics.

Parameters:

  • user_id: &str
  • strict: bool
source

pub async fn partial_update( &self, user_id: &str, strict: bool, body: &User ) -> Result<Response<User>, ClientError>

This function performs a POST to the /api/v1/users/{userId} endpoint.

Fetch a user by id, login, or login shortname if the short name is unambiguous.

Parameters:

  • user_id: &str
  • strict: bool
source

pub async fn deactivate_or_delete( &self, user_id: &str, send_email: bool ) -> Result<Response<()>, ClientError>

Delete User.

This function performs a DELETE to the /api/v1/users/{userId} endpoint.

Deletes a user permanently. This operation can only be performed on users that have a DEPROVISIONED status. This action cannot be recovered!

Parameters:

  • user_id: &str
  • send_email: bool

Get Assigned App Links.

This function performs a GET to the /api/v1/users/{userId}/appLinks endpoint.

Fetches appLinks for all direct or indirect (via group membership) assigned applications.

Parameters:

  • user_id: &str

Get Assigned App Links.

This function performs a GET to the /api/v1/users/{userId}/appLinks endpoint.

As opposed to list_app_links, this function returns all the pages of the request at once.

Fetches appLinks for all direct or indirect (via group membership) assigned applications.

source

pub async fn list_clients( &self, user_id: &str ) -> Result<Response<Vec<OAuth2Client>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients endpoint.

Lists all client resources for which the specified user has grants or tokens.

Parameters:

  • user_id: &str
source

pub async fn list_all_clients( &self, user_id: &str ) -> Result<Response<Vec<OAuth2Client>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients endpoint.

As opposed to list_clients, this function returns all the pages of the request at once.

Lists all client resources for which the specified user has grants or tokens.

source

pub async fn list_grants_for_and_clients( &self, user_id: &str, client_id: &str, expand: &str, after: &str, limit: i64 ) -> Result<Response<Vec<OAuth2ScopeConsentGrant>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients/{clientId}/grants endpoint.

Lists all grants for a specified user and client

Parameters:

  • user_id: &str
  • client_id: &str
  • expand: &str
  • after: &str
  • limit: i64
source

pub async fn list_all_grants_for_and_clients( &self, user_id: &str, client_id: &str, expand: &str ) -> Result<Response<Vec<OAuth2ScopeConsentGrant>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients/{clientId}/grants endpoint.

As opposed to list_grants_for_and_client, this function returns all the pages of the request at once.

Lists all grants for a specified user and client

source

pub async fn revoke_grants_for_and_client( &self, user_id: &str, client_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/clients/{clientId}/grants endpoint.

Revokes all grants for the specified user and client

Parameters:

  • user_id: &str
  • client_id: &str
source

pub async fn list_refresh_tokens_for_and_clients( &self, user_id: &str, client_id: &str, expand: &str, after: &str, limit: i64 ) -> Result<Response<Vec<OAuth2RefreshToken>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients/{clientId}/tokens endpoint.

Lists all refresh tokens issued for the specified User and Client.

Parameters:

  • user_id: &str
  • client_id: &str
  • expand: &str
  • after: &str
  • limit: i64
source

pub async fn list_all_refresh_tokens_for_and_clients( &self, user_id: &str, client_id: &str, expand: &str ) -> Result<Response<Vec<OAuth2RefreshToken>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients/{clientId}/tokens endpoint.

As opposed to list_refresh_tokens_for_and_client, this function returns all the pages of the request at once.

Lists all refresh tokens issued for the specified User and Client.

source

pub async fn revoke_tokens_for_and_client( &self, user_id: &str, client_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/clients/{clientId}/tokens endpoint.

Revokes all refresh tokens issued for the specified User and Client.

Parameters:

  • user_id: &str
  • client_id: &str
source

pub async fn get_refresh_token_for_and_client( &self, user_id: &str, client_id: &str, token_id: &str, expand: &str, limit: i64, after: &str ) -> Result<Response<OAuth2RefreshToken>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/clients/{clientId}/tokens/{tokenId} endpoint.

Gets a refresh token issued for the specified User and Client.

Parameters:

  • user_id: &str
  • client_id: &str
  • token_id: &str
  • expand: &str
  • limit: i64
  • after: &str
source

pub async fn revoke_token_for_and_client( &self, user_id: &str, client_id: &str, token_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/clients/{clientId}/tokens/{tokenId} endpoint.

Revokes the specified refresh token.

Parameters:

  • user_id: &str
  • client_id: &str
  • token_id: &str
source

pub async fn change_password( &self, user_id: &str, strict: bool, body: &ChangePasswordRequest ) -> Result<Response<UserCredentials>, ClientError>

Change Password.

This function performs a POST to the /api/v1/users/{userId}/credentials/change_password endpoint.

Changes a user’s password by validating the user’s current password. This operation can only be performed on users in STAGED, ACTIVE, PASSWORD_EXPIRED, or RECOVERY status that have a valid password credential

Parameters:

  • user_id: &str
  • strict: bool
source

pub async fn change_recovery_question( &self, user_id: &str, body: &UserCredentials ) -> Result<Response<UserCredentials>, ClientError>

Change Recovery Question.

This function performs a POST to the /api/v1/users/{userId}/credentials/change_recovery_question endpoint.

Changes a user’s recovery question & answer credential by validating the user’s current password. This operation can only be performed on users in STAGED, ACTIVE or RECOVERY status that have a valid password credential

Parameters:

  • user_id: &str
source

pub async fn post_credentials_forgot_password( &self, user_id: &str ) -> Result<Response<ResetPasswordToken>, ClientError>

Forgot Password.

This function performs a POST to the /api/v1/users/{userId}/credentials/forgot_password endpoint.

Parameters:

  • user_id: &str
source

pub async fn list_grants( &self, user_id: &str, scope_id: &str, expand: &str, after: &str, limit: i64 ) -> Result<Response<Vec<OAuth2ScopeConsentGrant>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/grants endpoint.

Lists all grants for the specified user

Parameters:

  • user_id: &str
  • scope_id: &str
  • expand: &str
  • after: &str
  • limit: i64
source

pub async fn list_all_grants( &self, user_id: &str, scope_id: &str, expand: &str ) -> Result<Response<Vec<OAuth2ScopeConsentGrant>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/grants endpoint.

As opposed to list_grants, this function returns all the pages of the request at once.

Lists all grants for the specified user

source

pub async fn revoke_grants( &self, user_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/grants endpoint.

Revokes all grants for a specified user

Parameters:

  • user_id: &str
source

pub async fn get_grant( &self, user_id: &str, grant_id: &str, expand: &str ) -> Result<Response<OAuth2ScopeConsentGrant>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/grants/{grantId} endpoint.

Gets a grant for the specified user

Parameters:

  • user_id: &str
  • grant_id: &str
  • expand: &str
source

pub async fn revoke_grant( &self, user_id: &str, grant_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/grants/{grantId} endpoint.

Revokes one grant for a specified user

Parameters:

  • user_id: &str
  • grant_id: &str
source

pub async fn list_groups( &self, user_id: &str ) -> Result<Response<Vec<Group>>, ClientError>

Get Member Groups.

This function performs a GET to the /api/v1/users/{userId}/groups endpoint.

Fetches the groups of which the user is a member.

Parameters:

  • user_id: &str
source

pub async fn list_all_groups( &self, user_id: &str ) -> Result<Response<Vec<Group>>, ClientError>

Get Member Groups.

This function performs a GET to the /api/v1/users/{userId}/groups endpoint.

As opposed to list_groups, this function returns all the pages of the request at once.

Fetches the groups of which the user is a member.

source

pub async fn list_identity_providers( &self, user_id: &str ) -> Result<Response<Vec<IdentityProvider>>, ClientError>

Listing IdPs associated with a user.

This function performs a GET to the /api/v1/users/{userId}/idps endpoint.

Lists the IdPs associated with the user.

Parameters:

  • user_id: &str
source

pub async fn list_all_identity_providers( &self, user_id: &str ) -> Result<Response<Vec<IdentityProvider>>, ClientError>

Listing IdPs associated with a user.

This function performs a GET to the /api/v1/users/{userId}/idps endpoint.

As opposed to list_identity_providers, this function returns all the pages of the request at once.

Lists the IdPs associated with the user.

source

pub async fn activate( &self, user_id: &str, send_email: bool ) -> Result<Response<UserActivationToken>, ClientError>

Activate User.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/activate endpoint.

Activates a user. This operation can only be performed on users with a STAGED status. Activation of a user is an asynchronous operation. The user will have the transitioningToStatus property with a value of ACTIVE during activation to indicate that the user hasn’t completed the asynchronous operation. The user will have a status of ACTIVE when the activation process is complete.

Parameters:

  • user_id: &str
  • send_email: bool – Sends an activation email to the user if true.
source

pub async fn deactivate( &self, user_id: &str, send_email: bool ) -> Result<Response<()>, ClientError>

Deactivate User.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/deactivate endpoint.

Deactivates a user. This operation can only be performed on users that do not have a DEPROVISIONED status. Deactivation of a user is an asynchronous operation. The user will have the transitioningToStatus property with a value of DEPROVISIONED during deactivation to indicate that the user hasn’t completed the asynchronous operation. The user will have a status of DEPROVISIONED when the deactivation process is complete.

Parameters:

  • user_id: &str
  • send_email: bool
source

pub async fn expire_password( &self, user_id: &str ) -> Result<Response<User>, ClientError>

Expire Password.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/expire_password?tempPassword=false endpoint.

This operation transitions the user to the status of PASSWORD_EXPIRED so that the user is required to change their password at their next login.

Parameters:

  • user_id: &str
source

pub async fn expire_password_and_get_temporary( &self, user_id: &str ) -> Result<Response<TempPassword>, ClientError>

Expire Password.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/expire_password?tempPassword=true endpoint.

This operation transitions the user to the status of PASSWORD_EXPIRED and the user’s password is reset to a temporary password that is returned.

Parameters:

  • user_id: &str
source

pub async fn reactivate( &self, user_id: &str, send_email: bool ) -> Result<Response<UserActivationToken>, ClientError>

Reactivate User.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/reactivate endpoint.

Reactivates a user. This operation can only be performed on users with a PROVISIONED status. This operation restarts the activation workflow if for some reason the user activation was not completed when using the activationToken from Activate User.

Parameters:

  • user_id: &str
  • send_email: bool – Sends an activation email to the user if true.
source

pub async fn reset_factors( &self, user_id: &str ) -> Result<Response<()>, ClientError>

Reset Factors.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/reset_factors endpoint.

This operation resets all factors for the specified user. All MFA factor enrollments returned to the unenrolled state. The user’s status remains ACTIVE. This link is present only if the user is currently enrolled in one or more MFA factors.

Parameters:

  • user_id: &str
source

pub async fn reset_password( &self, user_id: &str, send_email: bool ) -> Result<Response<ResetPasswordToken>, ClientError>

Reset Password.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/reset_password endpoint.

Generates a one-time token (OTT) that can be used to reset a user’s password. The OTT link can be automatically emailed to the user or returned to the API caller and distributed using a custom flow.

Parameters:

  • user_id: &str
  • send_email: bool
source

pub async fn suspend(&self, user_id: &str) -> Result<Response<()>, ClientError>

Suspend User.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/suspend endpoint.

Suspends a user. This operation can only be performed on users with an ACTIVE status. The user will have a status of SUSPENDED when the process is complete.

Parameters:

  • user_id: &str
source

pub async fn unlock(&self, user_id: &str) -> Result<Response<()>, ClientError>

Unlock User.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/unlock endpoint.

Unlocks a user with a LOCKED_OUT status and returns them to ACTIVE status. Users will be able to login with their current password.

Parameters:

  • user_id: &str
source

pub async fn unsuspend( &self, user_id: &str ) -> Result<Response<()>, ClientError>

Unsuspend User.

This function performs a POST to the /api/v1/users/{userId}/lifecycle/unsuspend endpoint.

Unsuspends a user and returns them to the ACTIVE state. This operation can only be performed on users that have a SUSPENDED status.

Parameters:

  • user_id: &str
source

pub async fn get_linked_objects_fors( &self, user_id: &str, relationship_name: &str, after: &str, limit: i64 ) -> Result<Response<Vec<Links>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/linkedObjects/{relationshipName} endpoint.

Get linked objects for a user, relationshipName can be a primary or associated relationship name

Parameters:

  • user_id: &str
  • relationship_name: &str
  • after: &str
  • limit: i64
source

pub async fn get_all_linked_objects_fors( &self, user_id: &str, relationship_name: &str ) -> Result<Response<Vec<Links>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/linkedObjects/{relationshipName} endpoint.

As opposed to get_linked_objects_for, this function returns all the pages of the request at once.

Get linked objects for a user, relationshipName can be a primary or associated relationship name

source

pub async fn remove_linked_object_for( &self, user_id: &str, relationship_name: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/linkedObjects/{relationshipName} endpoint.

Delete linked objects for a user, relationshipName can be ONLY a primary relationship name

Parameters:

  • user_id: &str
  • relationship_name: &str
source

pub async fn list_assigned_roles_fors( &self, user_id: &str, expand: &str ) -> Result<Response<Vec<Role>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/roles endpoint.

Lists all roles assigned to a user.

Parameters:

  • user_id: &str
  • expand: &str
source

pub async fn list_all_assigned_roles_fors( &self, user_id: &str, expand: &str ) -> Result<Response<Vec<Role>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/roles endpoint.

As opposed to list_assigned_roles_for, this function returns all the pages of the request at once.

Lists all roles assigned to a user.

source

pub async fn assign_role( &self, user_id: &str, disable_notifications: &str, body: &AssignRoleRequest ) -> Result<Response<Role>, ClientError>

This function performs a POST to the /api/v1/users/{userId}/roles endpoint.

Assigns a role to a user.

Parameters:

  • user_id: &str
  • disable_notifications: &str
source

pub async fn remove_role_from( &self, user_id: &str, role_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/roles/{roleId} endpoint.

Unassigns a role from a user.

Parameters:

  • user_id: &str
  • role_id: &str
source

pub async fn list_application_targets_for_administrator_roles( &self, user_id: &str, role_id: &str, after: &str, limit: i64 ) -> Result<Response<Vec<CatalogApplication>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps endpoint.

Lists all App targets for an APP_ADMIN Role assigned to a User. This methods return list may include full Applications or Instances. The response for an instance will have an ID value, while Application will not have an ID.

Parameters:

  • user_id: &str
  • role_id: &str
  • after: &str
  • limit: i64
source

pub async fn list_all_application_targets_for_administrator_roles( &self, user_id: &str, role_id: &str ) -> Result<Response<Vec<CatalogApplication>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps endpoint.

As opposed to list_application_targets_for_administrator_role, this function returns all the pages of the request at once.

Lists all App targets for an APP_ADMIN Role assigned to a User. This methods return list may include full Applications or Instances. The response for an instance will have an ID value, while Application will not have an ID.

source

pub async fn add_all_apps_as_target_role( &self, user_id: &str, role_id: &str ) -> Result<Response<()>, ClientError>

This function performs a PUT to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps endpoint.

Success

Parameters:

  • user_id: &str
  • role_id: &str
source

pub async fn add_application_target_admin_role_for( &self, user_id: &str, role_id: &str, app_name: &str ) -> Result<Response<()>, ClientError>

This function performs a PUT to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName} endpoint.

Success

Parameters:

  • user_id: &str
  • role_id: &str
  • app_name: &str
source

pub async fn remove_application_target_from_administrator_role_for( &self, user_id: &str, role_id: &str, app_name: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName} endpoint.

Success

Parameters:

  • user_id: &str
  • role_id: &str
  • app_name: &str
source

pub async fn add_application_target_app_admin_role_for( &self, user_id: &str, role_id: &str, app_name: &str, application_id: &str ) -> Result<Response<()>, ClientError>

Add App Instance Target to App Administrator Role given to a User.

This function performs a PUT to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId} endpoint.

Add App Instance Target to App Administrator Role given to a User

Parameters:

  • user_id: &str
  • role_id: &str
  • app_name: &str
  • application_id: &str
source

pub async fn remove_application_target_from_administrator_role_for_users( &self, user_id: &str, role_id: &str, app_name: &str, application_id: &str ) -> Result<Response<()>, ClientError>

Remove App Instance Target to App Administrator Role given to a User.

This function performs a DELETE to the /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId} endpoint.

Remove App Instance Target to App Administrator Role given to a User

Parameters:

  • user_id: &str
  • role_id: &str
  • app_name: &str
  • application_id: &str
source

pub async fn list_group_targets_for_roles( &self, user_id: &str, role_id: &str, after: &str, limit: i64 ) -> Result<Response<Vec<Group>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/roles/{roleId}/targets/groups endpoint.

Success

Parameters:

  • user_id: &str
  • role_id: &str
  • after: &str
  • limit: i64
source

pub async fn list_all_group_targets_for_roles( &self, user_id: &str, role_id: &str ) -> Result<Response<Vec<Group>>, ClientError>

This function performs a GET to the /api/v1/users/{userId}/roles/{roleId}/targets/groups endpoint.

As opposed to list_group_targets_for_role, this function returns all the pages of the request at once.

Success

source

pub async fn add_group_target_role( &self, user_id: &str, role_id: &str, group_id: &str ) -> Result<Response<()>, ClientError>

This function performs a PUT to the /api/v1/users/{userId}/roles/{roleId}/targets/groups/{groupId} endpoint.

Success

Parameters:

  • user_id: &str
  • role_id: &str
  • group_id: &str
source

pub async fn remove_group_target_from_role( &self, user_id: &str, role_id: &str, group_id: &str ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/roles/{roleId}/targets/groups/{groupId} endpoint.

Success

Parameters:

  • user_id: &str
  • role_id: &str
  • group_id: &str
source

pub async fn clear_sessions( &self, user_id: &str, oauth_tokens: bool ) -> Result<Response<()>, ClientError>

This function performs a DELETE to the /api/v1/users/{userId}/sessions endpoint.

Removes all active identity provider sessions. This forces the user to authenticate on the next operation. Optionally revokes OpenID Connect and OAuth refresh and access tokens issued to the user.

Parameters:

  • user_id: &str
  • oauth_tokens: bool – Revoke issued OpenID Connect and OAuth refresh and access tokens.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Users

§

impl Send for Users

§

impl Sync for Users

§

impl Unpin for Users

§

impl !UnwindSafe for Users

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more