Struct mangadex_api::v5::search::SearchBuilder
source · [−]pub struct SearchBuilder {
http_client: HttpClientRef,
}
Expand description
Search endpoint handler builder.
Fields
http_client: HttpClientRef
Implementations
sourceimpl 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")
.build()?
.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")
.build()?
.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()
.build()?
.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")
.build()?
.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")
.build()?
.send()
.await?;
println!("results: {:?}", res);
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SearchBuilder
impl Send for SearchBuilder
impl Sync for SearchBuilder
impl Unpin for SearchBuilder
impl !UnwindSafe for SearchBuilder
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