Trait TomlInput

Source
pub trait TomlInput: Serialize + Sized {
    // Required methods
    fn schema() -> Result<Schema, Error>;
    fn into_value(self) -> Result<Value, Error>;

    // Provided methods
    fn schema_to_string() -> Result<String, Error> { ... }
    fn into_string(self) -> Result<String, Error> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TomlInput for bool

Source§

impl TomlInput for f32

Source§

impl TomlInput for f64

Source§

impl TomlInput for i8

Source§

impl TomlInput for i16

Source§

impl TomlInput for i32

Source§

impl TomlInput for i64

Source§

impl TomlInput for isize

Source§

impl TomlInput for u8

Source§

impl TomlInput for u16

Source§

impl TomlInput for u32

Source§

impl TomlInput for u64

Source§

impl TomlInput for usize

Source§

impl TomlInput for String

Source§

impl TomlInput for PathBuf

Source§

impl<T: TomlInput> TomlInput for Option<T>

Source§

impl<T: TomlInput> TomlInput for Vec<T>

Implementors§