pub struct Yaml<T>(pub T);
Expand description
A representation of a YAML data. Use it as wrapper to set a format you want to use for conversion:
// Converts (lazy) data to a Yaml
let dump = Yaml(&data);
// Converts YAML string to a data (lazy).
let Yaml(data) = dump;
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> From<Result<String, Error>> for Yaml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
impl<T> From<Result<String, Error>> for Yaml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
Source§impl<T> From<Result<Vec<u8>, Error>> for Yaml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
impl<T> From<Result<Vec<u8>, Error>> for Yaml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
Auto Trait Implementations§
impl<T> Freeze for Yaml<T>where
T: Freeze,
impl<T> RefUnwindSafe for Yaml<T>where
T: RefUnwindSafe,
impl<T> Send for Yaml<T>where
T: Send,
impl<T> Sync for Yaml<T>where
T: Sync,
impl<T> Unpin for Yaml<T>where
T: Unpin,
impl<T> UnwindSafe for Yaml<T>where
T: UnwindSafe,
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, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.