pub struct Toml<T>(pub T);
Expand description
A representation of a TOML data. Use it as wrapper to set a format you want to use for conversion:
// Converts (lazy) data to a Toml
let dump = Toml(&data);
// Converts TOML string to a data (lazy).
let Toml(data) = dump;
}
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> From<Result<String, Error>> for Toml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
impl<T> From<Result<String, Error>> for Toml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
Source§impl<T> From<Result<Vec<u8>, Error>> for Toml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
impl<T> From<Result<Vec<u8>, Error>> for Toml<Result<T, Error>>where
T: for<'de> Deserialize<'de>,
Auto Trait Implementations§
impl<T> Freeze for Toml<T>where
T: Freeze,
impl<T> RefUnwindSafe for Toml<T>where
T: RefUnwindSafe,
impl<T> Send for Toml<T>where
T: Send,
impl<T> Sync for Toml<T>where
T: Sync,
impl<T> Unpin for Toml<T>where
T: Unpin,
impl<T> UnwindSafe for Toml<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.