Struct mangadex_api::v5::feed::FeedBuilder
source · [−]pub struct FeedBuilder {
http_client: HttpClientRef,
}
Expand description
Feed endpoint handler builder.
Fields
http_client: HttpClientRef
Implementations
sourceimpl FeedBuilder
impl FeedBuilder
sourcepub fn followed_manga(&self) -> GetFollowedMangaFeedBuilder<'_>
pub fn followed_manga(&self) -> GetFollowedMangaFeedBuilder<'_>
Get the manga feed for the logged-in user.
https://api.mangadex.org/swagger.html#/Feed/get-user-follows-manga-feed
Examples
use mangadex_api::v5::MangaDexClient;
use mangadex_api::types::{Password, Username};
let client = MangaDexClient::default();
let _login_res = client
.auth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.build()?
.send()
.await?;
let res = client
.feed()
.followed_manga()
.limit(1_u32)
.build()?
.send()
.await?;
println!("results: {:?}", res);
sourcepub fn custom_list_manga(&self) -> CustomListMangaFeedBuilder<'_>
pub fn custom_list_manga(&self) -> CustomListMangaFeedBuilder<'_>
Get the manga feed for a given custom list.
https://api.mangadex.org/swagger.html#/Feed/get-list-id-feed
Alias to MangaDexClient::custom_list().manga_feed()
.
Examples
use mangadex_api::v5::MangaDexClient;
let client = MangaDexClient::default();
let res = client
.feed()
.custom_list_manga()
.limit(1_u32)
.build()?
.send()
.await?;
println!("results: {:?}", res);
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FeedBuilder
impl Send for FeedBuilder
impl Sync for FeedBuilder
impl Unpin for FeedBuilder
impl !UnwindSafe for FeedBuilder
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