pub struct HydrusFile {
    pub id: FileIdentifier,
    pub status: FileStatus,
    /* private fields */
}

Fields

id: FileIdentifierstatus: FileStatus

Implementations

Deletes the internally stored metadata about the file retrieves it again

Returns the hash of the file if the file identifier is an id it calls hydrus to resolve the file

Returns the file size in bytes

Returns the mime of the file

Return the file extension

Returns the dimensions of the file in pixels

Returns the duration of the file in seconds if it’s a video

Returns the number of frames of the file if it’s a video

Returns if the file has audio

Returns if the file is currently in the inbox

Returns if the file is stored locally

Returns if the file has been moved to the trash

Returns all urls associated with the file

Returns the modified time of the file

Returns the imported time of the file for a given file service key

Returns the time the file was deleted for a specified file service

Associates the file with a list of urls

Disassociates the file with a list of urls

👎 Deprecated:

Deprecated in the official API. Use services_with_tags instead.

Returns map mapping lists of tags to services.

Deprecation: Use HydrusFile::services_with_tags instead.

Returns a mapping with service ids mapped to tags

Returns a list of all tags assigned to the file

Adds tags for a specific service to the file

Allows modification of tags by using the defined tag actions

Creates a builder to add notes to the file

Deletes a single note from the file

Deletes multiple notes from the file

Retrieves the file record bytes

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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