Struct mangadex_api::v2::builder::get_user::GetUserBuilder[][src]

pub struct GetUserBuilder<'a> {
    md_client: &'a MangaDexV2,
    id: Option<UserId>,
    me: bool,
    include: Option<String>,
}

Builder for the /v2/user/{id} endpoint.

Fields

md_client: &'a MangaDexV2id: Option<UserId>me: boolinclude: Option<String>

Implementations

impl<'a> GetUserBuilder<'a>[src]

pub fn new(md_client: &'a MangaDexV2) -> Self[src]

pub fn user_id(&mut self, id: UserId) -> &mut Self[src]

Set the numeric user ID.

This takes priority over the me field if both are set.

pub fn me(&mut self, me: bool) -> &mut Self[src]

Set true to use the current cookie-authenticated user.

pub fn include<T: Into<String>>(&mut self, include: T) -> &mut Self[src]

Include additional information with the user.

Available values

  • chapters: Include partial chapter information.

pub fn include_chapters(&mut self) -> &mut Self[src]

Convenience method to include partial chapter information with the user.

pub async fn send(&self) -> Result<UserResponseType, UserRequestError>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for GetUserBuilder<'a>

impl<'a> Send for GetUserBuilder<'a>

impl<'a> Sync for GetUserBuilder<'a>

impl<'a> Unpin for GetUserBuilder<'a>

impl<'a> !UnwindSafe for GetUserBuilder<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.