pub struct Service<T>
where T: XrpcClient + Send + Sync,
{ /* private fields */ }

Implementations§

source§

impl<T> Service<T>
where T: XrpcClient + Send + Sync,

source

pub async fn confirm_email(&self, input: Input) -> Result<(), Error<Error>>

Confirm an email using a token from com.atproto.server.requestEmailConfirmation.

source

pub async fn create_account(&self, input: Input) -> Result<Output, Error<Error>>

Create an account.

source

pub async fn create_app_password( &self, input: Input ) -> Result<Output, Error<Error>>

Create an app-specific password.

source

pub async fn create_invite_code( &self, input: Input ) -> Result<Output, Error<Error>>

Create an invite code.

source

pub async fn create_invite_codes( &self, input: Input ) -> Result<Output, Error<Error>>

Create an invite code.

source

pub async fn create_session(&self, input: Input) -> Result<Output, Error<Error>>

Create an authentication session.

source

pub async fn delete_account(&self, input: Input) -> Result<(), Error<Error>>

Delete a user account with a token and password.

source

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

Delete the current session.

source

pub async fn describe_server(&self) -> Result<Output, Error<Error>>

Get a document describing the service’s accounts configuration.

source

pub async fn get_account_invite_codes( &self, params: Parameters ) -> Result<Output, Error<Error>>

Get all invite codes for a given account

source

pub async fn get_session(&self) -> Result<Output, Error<Error>>

Get information about the current session.

source

pub async fn list_app_passwords(&self) -> Result<Output, Error<Error>>

List all app-specific passwords.

source

pub async fn refresh_session(&self) -> Result<Output, Error<Error>>

Refresh an authentication session.

source

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

Initiate a user account deletion via email.

source

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

Request an email with a code to confirm ownership of email

source

pub async fn request_email_update(&self) -> Result<Output, Error<Error>>

Request a token in order to update email.

source

pub async fn request_password_reset( &self, input: Input ) -> Result<(), Error<Error>>

Initiate a user account password reset via email.

source

pub async fn reserve_signing_key( &self, input: Input ) -> Result<Output, Error<Error>>

Reserve a repo signing key for account creation.

source

pub async fn reset_password(&self, input: Input) -> Result<(), Error<Error>>

Reset a user account password using a token.

source

pub async fn revoke_app_password( &self, input: Input ) -> Result<(), Error<Error>>

Revoke an app-specific password by name.

source

pub async fn update_email(&self, input: Input) -> Result<(), Error<Error>>

Update an account’s email.

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Service<T>
where T: RefUnwindSafe,

§

impl<T> Send for Service<T>

§

impl<T> Sync for Service<T>

§

impl<T> Unpin for Service<T>

§

impl<T> UnwindSafe for Service<T>
where T: RefUnwindSafe,

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.