Struct mangadex_api::v2::builder::SetUserChaptersReadBuilder [−][src]
Builder for the /v2/user/{id}/marker
endpoint.
Fields
md_client: &'a MangaDexV2
user_id: Option<UserId>
me: bool
chapters: 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]
&mut self,
chapters: I
) -> &mut Self
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]
&self
) -> Result<UserChaptersMarkerResponseType, UserRequestError>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SetUserChaptersReadBuilder<'a>
impl<'a> Send for SetUserChaptersReadBuilder<'a>
impl<'a> Sync for SetUserChaptersReadBuilder<'a>
impl<'a> Unpin for SetUserChaptersReadBuilder<'a>
impl<'a> !UnwindSafe for SetUserChaptersReadBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,