pub struct SearchBuilder {
http_client: HttpClientRef,
}
Expand description
Search endpoint handler builder.
Fields§
§http_client: HttpClientRef
Implementations§
Source§impl SearchBuilder
impl SearchBuilder
Search for authors.
https://api.mangadex.org/swagger.html#/Author/get-author
§Examples
use mangadex_api::v5::MangaDexClient;
let client = MangaDexClient::default();
let res = client
.search()
.author()
.name("carlo zen")
.send()
.await?;
println!("results: {:?}", res);
Sourcepub fn chapter(&self) -> ListChapterBuilder
pub fn chapter(&self) -> ListChapterBuilder
Search for chapters.
https://api.mangadex.org/swagger.html#/Chapter/get-chapter
§Examples
use mangadex_api::v5::MangaDexClient;
let client = MangaDexClient::default();
let res = client
.search()
.chapter()
.title("summoning")
.send()
.await?;
println!("results: {:?}", res);
Sourcepub fn cover(&self) -> ListCoverBuilder
pub fn cover(&self) -> ListCoverBuilder
Search for cover art.
https://api.mangadex.org/swagger.html#/Cover/get-cover
§Examples
use mangadex_api::v5::MangaDexClient;
let client = MangaDexClient::default();
let res = client
.search()
.cover()
.send()
.await?;
println!("results: {:?}", res);
Sourcepub fn manga(&self) -> ListMangaBuilder
pub fn manga(&self) -> ListMangaBuilder
Search for manga.
https://api.mangadex.org/swagger.html#/Manga/get-search-manga
§Examples
use mangadex_api::v5::MangaDexClient;
let client = MangaDexClient::default();
let res = client
.search()
.manga()
.title("official test manga")
.send()
.await?;
println!("results: {:?}", res);
Sourcepub fn scanlation_group(&self) -> ListGroupBuilder
pub fn scanlation_group(&self) -> ListGroupBuilder
Search for scanlation groups.
https://api.mangadex.org/swagger.html#/ScanlationGroup/get-search-group
§Examples
use mangadex_api::v5::MangaDexClient;
let client = MangaDexClient::default();
let res = client
.search()
.scanlation_group()
.name("mangadex")
.send()
.await?;
println!("results: {:?}", res);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchBuilder
impl !RefUnwindSafe for SearchBuilder
impl !Send for SearchBuilder
impl !Sync for SearchBuilder
impl Unpin for SearchBuilder
impl !UnwindSafe for SearchBuilder
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