Struct mangadex_api::v2::builder::GetUserChaptersBuilder [−][src]
Get partial information about the chapters uploaded by the user.
Builder for the /v2/user/{id}/chapters
endpoint.
Fields
md_client: &'a MangaDexV2
id: Option<UserId>
me: bool
page: Option<u32>
limit: Option<u32>
block_groups: Option<bool>
Implementations
impl<'a> GetUserChaptersBuilder<'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 page(&mut self, page: u32) -> &mut Self
[src]
Set the current page of the paginated results.
Default returns all chapters without pagination.
pub fn limit(&mut self, limit: u32) -> &mut Self
[src]
Set the limit of the paginated results.
- Minimum: 10
- Maximum: 100
- Default: 100
pub fn block_groups(&mut self, block_groups: bool) -> &mut Self
[src]
Do not include chapters by groups blocked by the user.
pub async fn send(&self) -> Result<UserChaptersResponseType, UserRequestError>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetUserChaptersBuilder<'a>
impl<'a> Send for GetUserChaptersBuilder<'a>
impl<'a> Sync for GetUserChaptersBuilder<'a>
impl<'a> Unpin for GetUserChaptersBuilder<'a>
impl<'a> !UnwindSafe for GetUserChaptersBuilder<'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>,