pub struct Client { /* private fields */ }Expand description
Low-level HTTP client wrapper for the trace.moe API.
Implementations§
Source§impl Client
impl Client
Sourcepub fn with_default_header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn with_default_header(self, key: HeaderName, value: HeaderValue) -> Self
Add a header that will be included on all requests.
Source§impl Client
impl Client
Sourcepub async fn tracemoe_search_by_url<TAnilist: for<'de> Deserialize<'de>>(
&self,
query: &SearchQuery,
) -> Result<SearchResponse<TAnilist>>
pub async fn tracemoe_search_by_url<TAnilist: for<'de> Deserialize<'de>>( &self, query: &SearchQuery, ) -> Result<SearchResponse<TAnilist>>
Search by image URL with optional parameters.
Sourcepub async fn tracemoe_search_upload<TAnilist: for<'de> Deserialize<'de>>(
&self,
bytes: impl Into<Vec<u8>>,
) -> Result<SearchResponse<TAnilist>>
pub async fn tracemoe_search_upload<TAnilist: for<'de> Deserialize<'de>>( &self, bytes: impl Into<Vec<u8>>, ) -> Result<SearchResponse<TAnilist>>
Upload image bytes to search.
Sourcepub async fn tracemoe_me(&self) -> Result<MeResponse>
pub async fn tracemoe_me(&self) -> Result<MeResponse>
Get current account quota and concurrency information.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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