Struct mangadex_api::v2::builder::set_user_chapters_read::SetUserChaptersReadBuilder[][src]

pub struct SetUserChaptersReadBuilder<'a> {
    md_client: &'a MangaDexV2,
    user_id: Option<UserId>,
    me: bool,
    chapters: Vec<ChapterId>,
    mark_read: bool,
}

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

Fields

md_client: &'a MangaDexV2user_id: Option<UserId>me: boolchapters: Vec<ChapterId>mark_read: bool

Implementations

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

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

pub fn user_id(&mut self, user_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 chapters<I: IntoIterator<Item = ChapterId>>(
    &mut self,
    chapters: I
) -> &mut Self
[src]

Set the list of chapter IDs to mark as read or unread.

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

Mark the chapters as read or unread.

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

Auto Trait Implementations

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.