pub struct AssetsMetadata { /* private fields */ }

Implementations

Load metadata about the stored cache file from the given folder.

There are several possibilities:

  • We find a metadata.yaml file and are able to parse it => return the contained information
  • We find a metadata.yaml file and but are not able to parse it => return a SerdeYamlError
  • We do not find a metadata.yaml file but a syntaxes.bin or themes.bin file => assume that these were created by an old version of bat and return AssetsMetadata::default() without version information
  • We do not find a metadata.yaml file and no cached assets => no user provided assets are available, return None

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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.

Calls U::from(self).

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

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.