Trait StringEncodable

Source
pub trait StringEncodable {
    // Required methods
    fn to_string(&self) -> String;
    fn from_string(s: &str) -> Result<Self>
       where Self: Sized;
}
Expand description

Trait for parameter types that can be serialized to a string

Required Methods§

Source

fn to_string(&self) -> String

Converts the parameters to a string representation

Source

fn from_string(s: &str) -> Result<Self>
where Self: Sized,

Converts from a string representation

Implementors§