ClerkFapiClient

Struct ClerkFapiClient 

Source
pub struct ClerkFapiClient { /* private fields */ }
Expand description

The main client for interacting with Clerk’s Frontend API

Implementations§

Source§

impl ClerkFapiClient

Source

pub fn new( config: ClerkFapiConfiguration, state: Arc<RwLock<ClerkState>>, ) -> Result<Self, String>

Creates a new ClerkFapiClient with the provided configuration

Source

pub fn set_dev_browser_token_id(&self, token_id: String)

Source

pub async fn get_sessions( &self, clerk_session_id: Option<&str>, ) -> Result<Vec<ClientActiveSession>, Error<GetSessionsError>>

Source

pub async fn get_users_sessions( &self, clerk_session_id: Option<&str>, ) -> Result<Vec<ClientSession>, Error<GetUsersSessionsError>>

Source

pub async fn revoke_session( &self, session_id: &str, clerk_session_id: Option<&str>, ) -> Result<ClientSession, Error<RevokeSessionError>>

Source

pub async fn create_backup_codes( &self, ) -> Result<BackupCodes, Error<CreateBackupCodesError>>

Source

pub async fn delete_client_sessions( &self, ) -> Result<ClientDeleteSession, Error<DeleteClientSessionsError>>

Source

pub async fn get_client( &self, ) -> Result<Option<ClientClient>, Error<GetClientError>>

Source

pub async fn handshake_client( &self, clerk_proxy_url: Option<&str>, clerk_secret_key: Option<&str>, redirect_url: Option<&str>, format: Option<&str>, organization_id: Option<&str>, satellite_fapi: Option<&str>, ) -> Result<(), Error<HandshakeClientError>>

Source

pub async fn post_client( &self, ) -> Result<Option<ClientClient>, Error<PostClientError>>

Source

pub async fn put_client( &self, ) -> Result<Option<ClientClient>, Error<PutClientError>>

Source

pub async fn clear_site_data(&self) -> Result<(), Error<ClearSiteDataError>>

Source

pub async fn get_account_portal( &self, ) -> Result<ClientAccountPortal, Error<GetAccountPortalError>>

Source

pub async fn get_dev_browser_init( &self, origin: Option<&str>, ) -> Result<(), Error<GetDevBrowserInitError>>

Source

pub async fn get_proxy_health( &self, domain_id: &str, clerk_proxy_url: &str, clerk_secret_key: &str, x_forwarded_for: &str, ) -> Result<GetProxyHealth200Response, Error<GetProxyHealthError>>

Source

pub async fn sync_client( &self, link_domain: Option<&str>, redirect_url: Option<&str>, ) -> Result<(), Error<SyncClientError>>

Source

pub async fn create_dev_browser( &self, ) -> Result<DevBrowser, Error<CreateDevBrowserError>>

Source

pub async fn attempt_organization_domain_verification( &self, organization_id: &str, domain_id: &str, code: &str, ) -> Result<ClientOrganizationDomain, Error<AttemptOrganizationDomainVerificationError>>

Source

pub async fn create_organization_domain( &self, organization_id: &str, name: &str, ) -> Result<ClientOrganizationDomain, Error<CreateOrganizationDomainError>>

Source

pub async fn delete_organization_domain( &self, organization_id: &str, domain_id: &str, ) -> Result<ClientDeletedObject, Error<DeleteOrganizationDomainError>>

Source

pub async fn get_organization_domain( &self, organization_id: &str, domain_id: &str, ) -> Result<ClientOrganizationDomain, Error<GetOrganizationDomainError>>

Source

pub async fn list_organization_domains( &self, organization_id: &str, limit: Option<i64>, offset: Option<i64>, verified: Option<bool>, enrollment_mode: Option<&str>, ) -> Result<ClientClientWrappedOrganizationDomainsResponse, Error<ListOrganizationDomainsError>>

Source

pub async fn prepare_organization_domain_verification( &self, organization_id: &str, domain_id: &str, affiliation_email_address: &str, ) -> Result<ClientOrganizationDomain, Error<PrepareOrganizationDomainVerificationError>>

Source

pub async fn update_organization_domain_enrollment_mode( &self, organization_id: &str, domain_id: &str, enrollment_mode: &str, delete_pending: Option<bool>, ) -> Result<ClientOrganizationDomain, Error<UpdateOrganizationDomainEnrollmentModeError>>

Source

pub async fn create_email_addresses( &self, email_address: &str, _clerk_session_id: Option<&str>, ) -> Result<ClientEmailAddress, Error<CreateEmailAddressesError>>

Source

pub async fn delete_email_address( &self, email_id: &str, clerk_session_id: Option<&str>, ) -> Result<ClientDeletedObject, Error<DeleteEmailAddressError>>

Source

pub async fn get_email_address( &self, email_id: &str, clerk_session_id: Option<&str>, ) -> Result<ClientEmailAddress, Error<GetEmailAddressError>>

Source

pub async fn get_email_addresses( &self, clerk_session_id: Option<&str>, ) -> Result<Vec<ClientEmailAddress>, Error<GetEmailAddressesError>>

Source

pub async fn send_verification_email( &self, email_id: &str, strategy: &str, _clerk_session_id: Option<&str>, redirect_url: Option<&str>, action_complete_redirect_url: Option<&str>, ) -> Result<ClientEmailAddress, Error<SendVerificationEmailError>>

Source

pub async fn verify_email_address( &self, email_id: &str, code: &str, _clerk_session_id: Option<&str>, ) -> Result<ClientEmailAddress, Error<VerifyEmailAddressError>>

Source

pub async fn get_environment( &self, ) -> Result<ClientEnvironment, Error<GetEnvironmentError>>

Source

pub async fn update_environment( &self, origin: &str, ) -> Result<ClientEnvironment, Error<UpdateEnvironmentError>>

Source

pub async fn delete_external_account( &self, external_account_id: &str, ) -> Result<ClientDeletedObject, Error<DeleteExternalAccountError>>

Source

pub async fn post_o_auth_accounts( &self, strategy: &str, origin: Option<&str>, redirect_url: Option<&str>, action_complete_redirect_url: Option<&str>, additional_scope: Option<&str>, code: Option<&str>, token: Option<&str>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ExternalAccountWithVerification, Error<PostOAuthAccountsError>>

Source

pub async fn reauthorize_external_account( &self, external_account_id: &str, redirect_url: &str, additional_scope: Option<Vec<String>>, action_complete_redirect_url: Option<&str>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ExternalAccountWithVerification, Error<ReauthorizeExternalAccountError>>

Source

pub async fn revoke_external_account_tokens( &self, external_account_id: &str, ) -> Result<ClientUser, Error<RevokeExternalAccountTokensError>>

Source

pub async fn get_health( &self, ) -> Result<GetHealth200Response, Error<GetHealthError>>

Source

pub async fn bulk_create_organization_invitations( &self, organization_id: &str, email_address: Vec<String>, role: &str, ) -> Result<Vec<ClientOrganizationInvitation>, Error<BulkCreateOrganizationInvitationsError>>

Source

pub async fn create_organization_invitations( &self, organization_id: &str, email_address: &str, role: &str, ) -> Result<ClientOrganizationInvitation, Error<CreateOrganizationInvitationsError>>

Source

pub async fn get_all_pending_organization_invitations( &self, organization_id: &str, ) -> Result<Vec<ClientOrganizationInvitation>, Error<GetAllPendingOrganizationInvitationsError>>

Source

pub async fn get_organization_invitations( &self, organization_id: &str, limit: Option<i64>, offset: Option<i64>, status: Option<&str>, ) -> Result<Vec<ClientOrganizationInvitation>, Error<GetOrganizationInvitationsError>>

Source

pub async fn revoke_pending_organization_invitation( &self, organization_id: &str, invitation_id: &str, ) -> Result<ClientOrganizationInvitation, Error<RevokePendingOrganizationInvitationError>>

Source

pub async fn create_organization_membership( &self, organization_id: &str, user_id: Option<&str>, role: Option<&str>, ) -> Result<ClientOrganizationMembership, Error<CreateOrganizationMembershipError>>

Source

pub async fn list_organization_memberships( &self, organization_id: &str, limit: Option<i64>, offset: Option<i64>, paginated: Option<bool>, query: Option<&str>, role: Option<&str>, ) -> Result<Vec<ClientOrganizationMembership>, Error<ListOrganizationMembershipsError>>

Source

pub async fn remove_organization_member( &self, organization_id: &str, user_id: &str, ) -> Result<ClientOrganizationMembership, Error<RemoveOrganizationMemberError>>

Source

pub async fn update_organization_membership( &self, organization_id: &str, user_id: &str, role: Option<&str>, ) -> Result<ClientOrganizationMembership, Error<UpdateOrganizationMembershipError>>

Source

pub async fn accept_organization_membership_request( &self, organization_id: &str, request_id: &str, ) -> Result<ClientOrganizationMembershipRequest, Error<AcceptOrganizationMembershipRequestError>>

Source

pub async fn list_organization_membership_requests( &self, organization_id: &str, limit: Option<i64>, offset: Option<i64>, status: Option<&str>, ) -> Result<ClientClientWrappedOrganizationMembershipRequestsResponse, Error<ListOrganizationMembershipRequestsError>>

Source

pub async fn reject_organization_membership_request( &self, organization_id: &str, request_id: &str, ) -> Result<ClientOrganizationMembershipRequest, Error<RejectOrganizationMembershipRequestError>>

Source

pub async fn get_oauth_callback( &self, scope: Option<&str>, code: Option<&str>, state: Option<&str>, error: Option<&str>, ) -> Result<(), Error<GetOauthCallbackError>>

Source

pub async fn post_oauth_callback( &self, code: Option<&str>, scope: Option<&str>, state: Option<&str>, error: Option<&str>, ) -> Result<(), Error<PostOauthCallbackError>>

Source

pub async fn get_o_auth_token( &self, ) -> Result<OAuthToken, Error<GetOAuthTokenError>>

Source

pub async fn get_o_auth_token_info( &self, token: &str, token_type_hint: Option<&str>, scope: Option<&str>, ) -> Result<OAuthTokenInfo, Error<GetOAuthTokenInfoError>>

Source

pub async fn get_o_auth_user_info( &self, ) -> Result<OAuthUserInfo, Error<GetOAuthUserInfoError>>

Source

pub async fn get_o_auth_user_info_post( &self, ) -> Result<OAuthUserInfo, Error<GetOAuthUserInfoPostError>>

Source

pub async fn request_o_auth_authorize( &self, ) -> Result<(), Error<RequestOAuthAuthorizeError>>

Source

pub async fn request_o_auth_authorize_post( &self, ) -> Result<(), Error<RequestOAuthAuthorizePostError>>

Source

pub async fn revoke_o_auth_token( &self, token: Option<&str>, token_type_hint: Option<&str>, ) -> Result<(), Error<RevokeOAuthTokenError>>

Source

pub async fn create_organization( &self, name: Option<&str>, ) -> Result<ClientOrganization, Error<CreateOrganizationError>>

Source

pub async fn delete_organization( &self, organization_id: &str, ) -> Result<ClientDeletedObject, Error<DeleteOrganizationError>>

Source

pub async fn get_organization( &self, organization_id: &str, ) -> Result<ClientOrganization, Error<GetOrganizationError>>

Source

pub async fn update_organization( &self, organization_id: &str, name: Option<&str>, slug: Option<&str>, ) -> Result<ClientOrganization, Error<UpdateOrganizationError>>

Source

pub async fn accept_organization_invitation( &self, invitation_id: &str, ) -> Result<ClientOrganizationInvitationUserContext, Error<AcceptOrganizationInvitationError>>

Source

pub async fn accept_organization_suggestion( &self, suggestion_id: &str, ) -> Result<ClientOrganizationSuggestion, Error<AcceptOrganizationSuggestionError>>

Source

pub async fn delete_organization_memberships( &self, organization_id: &str, ) -> Result<ClientDeletedObject, Error<DeleteOrganizationMembershipsError>>

Source

pub async fn get_organization_memberships( &self, limit: Option<i64>, offset: Option<i64>, paginated: Option<bool>, ) -> Result<Vec<ClientOrganizationMembership>, Error<GetOrganizationMembershipsError>>

Source

pub async fn get_organization_suggestions( &self, limit: Option<i64>, offset: Option<i64>, status: Option<&str>, ) -> Result<ClientClientWrappedOrganizationSuggestionsResponse, Error<GetOrganizationSuggestionsError>>

Source

pub async fn get_users_organization_invitations( &self, limit: Option<i64>, offset: Option<i64>, status: Option<&str>, ) -> Result<ClientClientWrappedOrganizationInvitationsUserContextResponse, Error<GetUsersOrganizationInvitationsError>>

Source

pub async fn attempt_passkey_verification( &self, passkey_id: &str, origin: Option<&str>, strategy: Option<&str>, public_key_credential: Option<&str>, ) -> Result<ClientPasskey, Error<AttemptPasskeyVerificationError>>

Source

pub async fn delete_passkey( &self, passkey_id: &str, ) -> Result<ClientDeletedObject, Error<DeletePasskeyError>>

Source

pub async fn patch_passkey( &self, passkey_id: &str, name: Option<&str>, ) -> Result<ClientPasskey, Error<PatchPasskeyError>>

Source

pub async fn post_passkey( &self, _clerk_session_id: Option<&str>, origin: Option<&str>, x_original_host: Option<&str>, ) -> Result<ClientPasskey, Error<PostPasskeyError>>

Source

pub async fn read_passkey( &self, passkey_id: &str, ) -> Result<ClientPasskey, Error<ReadPasskeyError>>

Source

pub async fn delete_phone_number( &self, phone_number_id: &str, clerk_session_id: Option<&str>, ) -> Result<ClientDeletedObject, Error<DeletePhoneNumberError>>

Source

pub async fn get_phone_numbers( &self, clerk_session_id: Option<&str>, ) -> Result<Vec<ClientPhoneNumber>, Error<GetPhoneNumbersError>>

Source

pub async fn post_phone_numbers( &self, phone_number: &str, _clerk_session_id: Option<&str>, reserved_for_second_factor: Option<bool>, ) -> Result<ClientPhoneNumber, Error<PostPhoneNumbersError>>

Source

pub async fn read_phone_number( &self, phone_number_id: &str, clerk_session_id: Option<&str>, ) -> Result<ClientPhoneNumber, Error<ReadPhoneNumberError>>

Source

pub async fn send_verification_sms( &self, phone_number_id: &str, strategy: &str, _clerk_session_id: Option<&str>, ) -> Result<ClientPhoneNumber, Error<SendVerificationSmsError>>

Source

pub async fn update_phone_number( &self, phone_number_id: &str, clerk_session_id: Option<&str>, reserved_for_second_factor: Option<bool>, default_second_factor: Option<bool>, ) -> Result<ClientPhoneNumber, Error<UpdatePhoneNumberError>>

Source

pub async fn verify_phone_number( &self, phone_number_id: &str, code: &str, _clerk_session_id: Option<&str>, ) -> Result<ClientPhoneNumber, Error<VerifyPhoneNumberError>>

Source

pub async fn redirect_to_url( &self, redirect_url: Option<&str>, ) -> Result<(), Error<RedirectToUrlError>>

Source

pub async fn list_organization_roles( &self, organization_id: &str, limit: Option<i64>, offset: Option<i64>, ) -> Result<ClientClientWrappedRolesResponse, Error<ListOrganizationRolesError>>

Source

pub async fn acs(&self, saml_connection_id: &str) -> Result<(), Error<AcsError>>

Source

pub async fn saml_metadata( &self, saml_connection_id: &str, ) -> Result<(), Error<SamlMetadataError>>

Source

pub async fn attempt_session_reverification_first_factor( &self, session_id: &str, strategy: &str, origin: Option<&str>, code: Option<&str>, password: Option<&str>, public_key_credential: Option<&str>, ) -> Result<ClientSessionReverification, Error<AttemptSessionReverificationFirstFactorError>>

Source

pub async fn attempt_session_reverification_second_factor( &self, session_id: &str, strategy: Option<&str>, code: Option<&str>, ) -> Result<ClientSessionReverification, Error<AttemptSessionReverificationSecondFactorError>>

Source

pub async fn create_session_token( &self, session_id: &str, organization_id: Option<&str>, ) -> Result<CreateSessionToken200Response, Error<CreateSessionTokenError>>

Source

pub async fn create_session_token_with_template( &self, session_id: &str, template_name: &str, ) -> Result<CreateSessionToken200Response, Error<CreateSessionTokenWithTemplateError>>

Source

pub async fn end_session( &self, session_id: &str, ) -> Result<ClientSession, Error<EndSessionError>>

Source

pub async fn get_session( &self, session_id: &str, ) -> Result<ClientSession, Error<GetSessionError>>

Source

pub async fn prepare_session_reverification_first_factor( &self, session_id: &str, origin: Option<&str>, strategy: Option<&str>, email_address_id: Option<&str>, phone_number_id: Option<&str>, ) -> Result<ClientSessionReverification, Error<PrepareSessionReverificationFirstFactorError>>

Source

pub async fn prepare_session_reverification_second_factor( &self, session_id: &str, strategy: Option<&str>, phone_number_id: Option<&str>, ) -> Result<ClientSessionReverification, Error<PrepareSessionReverificationSecondFactorError>>

Source

pub async fn remove_session( &self, session_id: &str, ) -> Result<ClientSession, Error<RemoveSessionError>>

Source

pub async fn start_session_reverification( &self, session_id: &str, level: &str, ) -> Result<ClientSessionReverification, Error<StartSessionReverificationError>>

Source

pub async fn touch_session( &self, session_id: &str, active_organization_id: Option<&str>, ) -> Result<ClientSession, Error<TouchSessionError>>

Source

pub async fn accept_ticket( &self, ticket: &str, ) -> Result<(), Error<AcceptTicketError>>

Source

pub async fn attempt_sign_in_factor_one( &self, sign_in_id: &str, strategy: &str, origin: Option<&str>, code: Option<&str>, password: Option<&str>, signature: Option<&str>, token: Option<&str>, ticket: Option<&str>, public_key_credential: Option<&str>, ) -> Result<ClientSignIn, Error<AttemptSignInFactorOneError>>

Source

pub async fn attempt_sign_in_factor_two( &self, sign_in_id: &str, strategy: Option<&str>, code: Option<&str>, ) -> Result<ClientSignIn, Error<AttemptSignInFactorTwoError>>

Source

pub async fn create_sign_in( &self, origin: Option<&str>, strategy: Option<&str>, identifier: Option<&str>, password: Option<&str>, ticket: Option<&str>, redirect_url: Option<&str>, action_complete_redirect_url: Option<&str>, transfer: Option<bool>, code: Option<&str>, token: Option<&str>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ClientSignIn, Error<CreateSignInError>>

Source

pub async fn get_sign_in( &self, sign_in_id: &str, ) -> Result<ClientSignIn, Error<GetSignInError>>

Source

pub async fn prepare_sign_in_factor_one( &self, sign_in_id: &str, strategy: &str, origin: Option<&str>, email_address_id: Option<&str>, phone_number_id: Option<&str>, web3_wallet_id: Option<&str>, passkey_id: Option<&str>, redirect_url: Option<&str>, action_complete_redirect_url: Option<&str>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ClientSignIn, Error<PrepareSignInFactorOneError>>

Source

pub async fn prepare_sign_in_factor_two( &self, sign_in_id: &str, strategy: Option<&str>, phone_number_id: Option<&str>, ) -> Result<ClientSignIn, Error<PrepareSignInFactorTwoError>>

Source

pub async fn reset_password( &self, sign_in_id: &str, password: &str, sign_out_of_other_sessions: Option<bool>, ) -> Result<ClientSignIn, Error<ResetPasswordError>>

Source

pub async fn verify(&self, token: &str) -> Result<(), Error<VerifyError>>

Source

pub async fn attempt_sign_ups_verification( &self, sign_up_id: &str, origin: Option<&str>, strategy: Option<&str>, code: Option<&str>, signature: Option<&str>, token: Option<&str>, ) -> Result<ClientSignUp, Error<AttemptSignUpsVerificationError>>

Source

pub async fn create_sign_ups( &self, origin: Option<&str>, transfer: Option<bool>, password: Option<&str>, first_name: Option<&str>, last_name: Option<&str>, username: Option<&str>, email_address: Option<&str>, phone_number: Option<&str>, email_address_or_phone_number: Option<&str>, unsafe_metadata: Option<&str>, strategy: Option<&str>, action_complete_redirect_url: Option<&str>, redirect_url: Option<&str>, ticket: Option<&str>, web3_wallet: Option<&str>, token: Option<&str>, code: Option<&str>, captcha_token: Option<&str>, captcha_error: Option<&str>, captcha_widget_type: Option<&str>, legal_accepted: Option<bool>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ClientSignUp, Error<CreateSignUpsError>>

Source

pub async fn get_sign_ups( &self, sign_up_id: &str, ) -> Result<ClientSignUp, Error<GetSignUpsError>>

Source

pub async fn prepare_sign_ups_verification( &self, sign_up_id: &str, origin: Option<&str>, strategy: Option<&str>, redirect_url: Option<&str>, action_complete_redirect_url: Option<&str>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ClientSignUp, Error<PrepareSignUpsVerificationError>>

Source

pub async fn update_sign_ups( &self, sign_up_id: &str, origin: Option<&str>, password: Option<&str>, first_name: Option<&str>, last_name: Option<&str>, username: Option<&str>, email_address: Option<&str>, phone_number: Option<&str>, email_address_or_phone_number: Option<&str>, unsafe_metadata: Option<&str>, strategy: Option<&str>, redirect_url: Option<&str>, action_complete_redirect_url: Option<&str>, ticket: Option<&str>, web3_wallet: Option<&str>, token: Option<&str>, code: Option<&str>, legal_accepted: Option<bool>, oidc_login_hint: Option<&str>, oidc_prompt: Option<&str>, ) -> Result<ClientSignUp, Error<UpdateSignUpsError>>

Source

pub async fn delete_totp( &self, ) -> Result<ClientDeletedObject, Error<DeleteTotpError>>

Source

pub async fn post_totp(&self) -> Result<Totp, Error<PostTotpError>>

Source

pub async fn verify_totp( &self, code: Option<&str>, ) -> Result<Totp, Error<VerifyTotpError>>

Source

pub async fn change_password( &self, current_password: Option<&str>, new_password: Option<&str>, sign_out_of_other_sessions: Option<bool>, ) -> Result<ClientUser, Error<ChangePasswordError>>

Source

pub async fn create_service_token( &self, service: &str, _clerk_session_id: Option<&str>, ) -> Result<Token, Error<CreateServiceTokenError>>

Source

pub async fn delete_profile_image( &self, ) -> Result<ClientDeletedObject, Error<DeleteProfileImageError>>

Source

pub async fn delete_user( &self, ) -> Result<ClientDeletedObject, Error<DeleteUserError>>

Source

pub async fn get_user(&self) -> Result<ClientUser, Error<GetUserError>>

Source

pub async fn patch_user( &self, username: Option<&str>, first_name: Option<&str>, last_name: Option<&str>, primary_email_address_id: Option<&str>, primary_phone_number_id: Option<&str>, primary_web3_wallet_id: Option<&str>, unsafe_metadata: Option<&str>, ) -> Result<ClientUser, Error<PatchUserError>>

Source

pub async fn remove_password( &self, current_password: Option<&str>, ) -> Result<ClientUser, Error<RemovePasswordError>>

Source

pub async fn update_profile_image( &self, file: FileData, ) -> Result<Image, Error<UpdateProfileImageError>>

Does not work, file upload not implemented yet

Source

pub async fn join_waitlist( &self, email_address: &str, ) -> Result<ClientWaitlistEntry, Error<JoinWaitlistError>>

Source

pub async fn attempt_web3_wallet_verification( &self, web3_wallet_id: &str, signature: &str, origin: Option<&str>, ) -> Result<ClientWeb3Wallet, Error<AttemptWeb3WalletVerificationError>>

Source

pub async fn delete_web3_wallet( &self, web3_wallet_id: &str, ) -> Result<ClientDeletedObject, Error<DeleteWeb3WalletError>>

Source

pub async fn get_web3_wallets( &self, clerk_session_id: Option<&str>, ) -> Result<Vec<ClientWeb3Wallet>, Error<GetWeb3WalletsError>>

Source

pub async fn post_web3_wallets( &self, web3_wallet: &str, _clerk_session_id: Option<&str>, ) -> Result<ClientWeb3Wallet, Error<PostWeb3WalletsError>>

Source

pub async fn prepare_web3_wallet_verification( &self, web3_wallet_id: &str, strategy: &str, origin: Option<&str>, redirect_url: Option<&str>, ) -> Result<ClientWeb3Wallet, Error<PrepareWeb3WalletVerificationError>>

Source

pub async fn read_web3_wallet( &self, web3_wallet_id: &str, ) -> Result<ClientWeb3Wallet, Error<ReadWeb3WalletError>>

Source

pub async fn get_apple_app_site_association( &self, ) -> Result<WellKnownAppleAppSiteAssociation, Error<GetAppleAppSiteAssociationError>>

Source

pub async fn get_jwks(&self) -> Result<Jwks, Error<GetJwksError>>

Source

pub async fn get_o_auth2_authorization_server_metadata( &self, ) -> Result<WellKnownOAuth2AuthorizationServerMetadata, Error<GetOAuth2AuthorizationServerMetadataError>>

Source

pub async fn get_open_id_configuration( &self, ) -> Result<WellKnownOpenIdConfiguration, Error<GetOpenIdConfigurationError>>

Trait Implementations§

Source§

impl Clone for ClerkFapiClient

Source§

fn clone(&self) -> ClerkFapiClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
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
Source§

impl<T> ErasedDestructor for T
where T: 'static,