pub enum AddonCache {
V1(HashMap<Flavor, Vec<AddonCacheEntry>>),
}Variants§
V1(HashMap<Flavor, Vec<AddonCacheEntry>>)
Trait Implementations§
Source§impl Debug for AddonCache
impl Debug for AddonCache
Source§impl Default for AddonCache
impl Default for AddonCache
Source§impl<'de> Deserialize<'de> for AddonCache
impl<'de> Deserialize<'de> for AddonCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PersistentData for AddonCache
impl PersistentData for AddonCache
Source§fn relative_path() -> PathBuf
fn relative_path() -> PathBuf
Only method required to implement PersistentData on an object. Always relative to
the config folder for Ajour.
Source§fn path() -> Result<PathBuf, FilesystemError>
fn path() -> Result<PathBuf, FilesystemError>
Returns the full file path. Will create any parent directories that don’t
exist.
Source§fn load() -> Result<Self, FilesystemError>
fn load() -> Result<Self, FilesystemError>
Load from
PersistentData::path().Source§fn load_or_default<T: PersistentData + Default>() -> Result<T, FilesystemError>
fn load_or_default<T: PersistentData + Default>() -> Result<T, FilesystemError>
Load from
PersistentData::path(). If file doesn’t exist, save it to the filesystem as Default
and return that object.Auto Trait Implementations§
impl Freeze for AddonCache
impl RefUnwindSafe for AddonCache
impl Send for AddonCache
impl Sync for AddonCache
impl Unpin for AddonCache
impl UnwindSafe for AddonCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more