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. Implemented by PDS.

source

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

Create an App 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 invite codes.

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 an actor’s account with a token and password. Can only be called after requesting a deletion token. Requires auth.

source

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

Delete the current session. Requires auth.

source

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

Describes the server’s account creation requirements and capabilities. Implemented by PDS.

source

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

Get all invite codes for the current account. Requires auth.

source

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

Get information about the current auth session. Requires auth.

source

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

List all App Passwords.

source

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

Refresh an authentication session. Requires auth using the ‘refreshJwt’ (not the ‘accessJwt’).

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 use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented.

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 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> References<RawCodec> for T

source§

fn references<R, E>(_c: RawCodec, _r: &mut R, _set: &mut E) -> Result<(), Error>
where R: Read, E: Extend<Cid<64>>,

Scrape the references from an impl Read. Read more
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.