pub struct Hydrus { /* private fields */ }
Expand description
A high level wrapper for the hydrus API for easier management of files, tags urls etc.
Implementations
sourceimpl Hydrus
impl Hydrus
sourcepub fn import(&self) -> ImportBuilder
pub fn import(&self) -> ImportBuilder
Creates an import builder to build an import request to hydrus
sourcepub fn address<S: AsRef<str> + Debug>(&self, address: S) -> Address
pub fn address<S: AsRef<str> + Debug>(&self, address: S) -> Address
Returns the address as an object that can be used to get and set cookies
sourcepub async fn url<S: AsRef<str> + Debug>(&self, url: S) -> Result<Url>
pub async fn url<S: AsRef<str> + Debug>(&self, url: S) -> Result<Url>
Returns information about a given url in an object that allows further operations with that url
sourcepub async fn file(&self, identifier: FileIdentifier) -> Result<HydrusFile>
pub async fn file(&self, identifier: FileIdentifier) -> Result<HydrusFile>
Returns a file by identifier to perform further operations on
sourcepub fn tagging(&self) -> TaggingBuilder
pub fn tagging(&self) -> TaggingBuilder
Starts a request to bulk add tags to files
sourcepub fn search(&self) -> SearchBuilder
pub fn search(&self) -> SearchBuilder
Starts a request to search for files
sourcepub async fn page<S: AsRef<str> + Debug>(
&self,
page_key: S
) -> Result<HydrusPage>
pub async fn page<S: AsRef<str> + Debug>(
&self,
page_key: S
) -> Result<HydrusPage>
Returns a hydrus page by page key
sourcepub async fn root_page(&self) -> Result<HydrusPage>
pub async fn root_page(&self) -> Result<HydrusPage>
Returns the root page in the client
Auto Trait Implementations
impl !RefUnwindSafe for Hydrus
impl Send for Hydrus
impl Sync for Hydrus
impl Unpin for Hydrus
impl !UnwindSafe for Hydrus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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