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§
Sourcefn from_string(s: &str) -> Result<Self>where
    Self: Sized,
 
fn from_string(s: &str) -> Result<Self>where
    Self: Sized,
Converts from a string representation