[][src]Enum yy_boss::SerializationFormat

pub enum SerializationFormat {
    Json,
    Yaml,
}

Variants

Json
Yaml

Implementations

impl SerializationFormat[src]

pub fn file_ending(&self) -> &'static str[src]

pub fn serialize_and_write(
    &self,
    absolute_path: &Path,
    data: &impl Serialize
) -> Result<(), FileSerializationError>
[src]

pub fn deserialize_and_read<T>(
    &self,
    path: &Path
) -> Result<T, FileSerializationError> where
    T: Deserialize<'de>, 
[src]

pub fn serialize(
    &self,
    data: &impl Serialize
) -> Result<String, FileSerializationError>
[src]

Trait Implementations

impl Clone for SerializationFormat[src]

impl Copy for SerializationFormat[src]

impl Debug for SerializationFormat[src]

impl Default for SerializationFormat[src]

impl<'de> Deserialize<'de> for SerializationFormat[src]

impl Eq for SerializationFormat[src]

impl Hash for SerializationFormat[src]

impl Ord for SerializationFormat[src]

impl PartialEq<SerializationFormat> for SerializationFormat[src]

impl PartialOrd<SerializationFormat> for SerializationFormat[src]

impl Serialize for SerializationFormat[src]

impl StructuralEq for SerializationFormat[src]

impl StructuralPartialEq for SerializationFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,