pub struct Client { /* private fields */ }
Expand description

A low level Client for the hydrus API. It provides basic abstraction over the REST api.

Implementations

Returns a builder for the client

Creates a new client to start requests against the hydrus api.

Returns the current API version. It’s being incremented every time the API changes.

Creates a new session key

Verifies if the access key is valid and returns some information about its permissions

Returns the list of tag and file services of the client

Adds a file to hydrus

Adds a file from binary data to hydrus

Moves files with matching hashes to the trash

Pulls files out of the trash by hash

Moves files from the inbox into the archive

Moves files from the archive into the inbox

Returns the list of tags as the client would see them in a human friendly order

Adds tags to files with the given hashes

Searches for files

Searches for file hashes

Returns the metadata for a given list of file_ids or hashes

Returns the metadata for a single file identifier

Returns the bytes of a file from hydrus

Returns all files associated with the given url

Returns information about the given url

Adds an url to hydrus, optionally with additional tags and a destination page

Associates urls with the given file hashes

Disassociates urls with the given file hashes

Sets the notes for the file

Deletes the notes of a file

Returns all pages of the client

Returns information about a single page

Focuses a page in the client

Adds files to a page

Returns all cookies for the given domain

Sets some cookies for some websites. Each entry needs to be in the format [<name>, <value>, <domain>, <path>, <expires>] with the types [String, String, String, String, u64]

Sets the user agent that is being used for every request hydrus starts

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more