Struct hydrus_api::client::Client [−][src]
pub struct Client { /* fields omitted */ }Implementations
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
pub async fn search_files(
&mut self,
tags: Vec<String>,
location: FileSearchLocation
) -> Result<SearchFilesResponse>
pub async fn search_files(
&mut self,
tags: Vec<String>,
location: FileSearchLocation
) -> Result<SearchFilesResponse>Searches for files in the inbox, the archive or both
pub async fn get_file_metadata(
&mut self,
file_ids: Vec<u64>,
hashes: Vec<String>
) -> Result<FileMetadataResponse>
pub async fn get_file_metadata(
&mut self,
file_ids: Vec<u64>,
hashes: Vec<String>
) -> Result<FileMetadataResponse>Returns the metadata for a given list of file_ids or hashes
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
Auto Trait Implementations
impl !RefUnwindSafe for Clientimpl !UnwindSafe for Client