Struct mangadex_api::v5::account::AccountBuilder
source · [−]pub struct AccountBuilder {
http_client: HttpClientRef,
}
Expand description
Account endpoint handler builder.
Fields
http_client: HttpClientRef
Implementations
sourceimpl AccountBuilder
impl AccountBuilder
sourcepub fn create(&self) -> CreateAccountBuilder<'_>
pub fn create(&self) -> CreateAccountBuilder<'_>
Create a new MangaDex account.
https://api.mangadex.org/swagger.html#/Account/post-account-create
sourcepub fn activate(&self) -> ActivateAccountBuilder<'_>
pub fn activate(&self) -> ActivateAccountBuilder<'_>
Activate a MangaDex account after creating one.
https://api.mangadex.org/swagger.html#/Account/get-account-activate-code
sourcepub fn resend_activation_code(&self) -> ResendActivationCodeBuilder<'_>
pub fn resend_activation_code(&self) -> ResendActivationCodeBuilder<'_>
Resend the account activation code.
https://api.mangadex.org/swagger.html#/Account/post-account-activate-resend
sourcepub fn recover(&self) -> RecoverAccountBuilder<'_>
pub fn recover(&self) -> RecoverAccountBuilder<'_>
Initiate the account recovery process.
https://api.mangadex.org/swagger.html#/Account/post-account-recover
sourcepub fn complete_recovery(&self) -> CompleteAccountRecoveryBuilder<'_>
pub fn complete_recovery(&self) -> CompleteAccountRecoveryBuilder<'_>
Complete the account recovery process.
https://api.mangadex.org/swagger.html#/Account/post-account-recover-code
sourcepub fn check_username_available(&self) -> CheckUsernameAvailableBuilder<'_>
pub fn check_username_available(&self) -> CheckUsernameAvailableBuilder<'_>
Check if an account username is available.
https://api.mangadex.org/swagger.html#/Account/get-account-available
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AccountBuilder
impl Send for AccountBuilder
impl Sync for AccountBuilder
impl Unpin for AccountBuilder
impl !UnwindSafe for AccountBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more