pub struct YamlStorage;Expand description
YAML storage backend (requires yaml feature).
YAML storage backend
Requires the yaml feature.
Implementations§
Source§impl YamlStorage
impl YamlStorage
Trait Implementations§
Source§impl Clone for YamlStorage
impl Clone for YamlStorage
Source§fn clone(&self) -> YamlStorage
fn clone(&self) -> YamlStorage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for YamlStorage
impl Default for YamlStorage
Source§fn default() -> YamlStorage
fn default() -> YamlStorage
Returns the “default value” for a type. Read more
Source§impl StorageBackend for YamlStorage
Available on crate feature yaml only.
impl StorageBackend for YamlStorage
Available on crate feature
yaml only.Source§fn extension(&self) -> &'static str
fn extension(&self) -> &'static str
File extension for this storage format (e.g., “json”, “toml”) Read more
Source§fn serialize<T: Serialize>(&self, data: &T) -> Result<String>
fn serialize<T: Serialize>(&self, data: &T) -> Result<String>
Serialize data to string Read more
Source§fn deserialize<T: DeserializeOwned>(&self, content: &str) -> Result<T>
fn deserialize<T: DeserializeOwned>(&self, content: &str) -> Result<T>
Deserialize data from string Read more
Auto Trait Implementations§
impl Freeze for YamlStorage
impl RefUnwindSafe for YamlStorage
impl Send for YamlStorage
impl Sync for YamlStorage
impl Unpin for YamlStorage
impl UnsafeUnpin for YamlStorage
impl UnwindSafe for YamlStorage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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