pub struct FeedBuilder {
http_client: HttpClientRef,
}
Expand description
Feed endpoint handler builder.
Fields§
§http_client: HttpClientRef
Implementations§
Source§impl FeedBuilder
impl FeedBuilder
Sourcepub fn followed_manga(&self) -> FollowedMangaBuilder
pub fn followed_manga(&self) -> FollowedMangaBuilder
Get the manga feed for the logged-in user.
https://api.mangadex.org/docs/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
.oauth()
.login()
.username(Username::parse("myusername")?)
.password(Password::parse("hunter23")?)
.send()
.await?;
let res = client
.feed()
.followed_manga()
.limit(1_u32)
.send()
.await?;
println!("results: {:?}", res);
Sourcepub fn custom_list_manga(&self, list_id: Uuid) -> CustomListMangaFeedBuilder
pub fn custom_list_manga(&self, list_id: Uuid) -> CustomListMangaFeedBuilder
Get the manga feed for a given custom list.
https://api.mangadex.org/docs/swagger.html#/Feed/get-list-id-feed
Alias to MangaDexClient::custom_list().id(uuid::Uuid).feed().get()
.
§Examples
use mangadex_api::v5::MangaDexClient;
use uuid::Uuid;
let client = MangaDexClient::default();
let res = client
.feed()
.custom_list_manga(Uuid::new_v4())
.limit(1_u32)
.send()
.await?;
println!("results: {:?}", res);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FeedBuilder
impl !RefUnwindSafe for FeedBuilder
impl !Send for FeedBuilder
impl !Sync for FeedBuilder
impl Unpin for FeedBuilder
impl !UnwindSafe for FeedBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more