Trait DeserializeFromStr

Source
pub trait DeserializeFromStr {
    type Error;

    // Required method
    fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>
       where Self: Sized;
}
Expand description

For custom data parsing, ex. you want to convert the retrieved data (strings) to enums

Data in cells are not their type, they are simply strings that need to be converted.

Required Associated Types§

Required Methods§

Source

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl DeserializeFromStr for bool

Source§

type Error = <bool as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for f32

Source§

type Error = <f32 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for f64

Source§

type Error = <f64 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for i16

Source§

type Error = <i16 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for i32

Source§

type Error = <i32 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for i64

Source§

type Error = <i64 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for i128

Source§

type Error = <i128 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for isize

Source§

type Error = <isize as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for u8

Source§

type Error = <u8 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for u16

Source§

type Error = <u16 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for u32

Source§

type Error = <u32 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for u64

Source§

type Error = <u64 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for u128

Source§

type Error = <u128 as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for usize

Source§

type Error = <usize as FromStr>::Err

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>

Source§

impl DeserializeFromStr for String

Source§

impl DeserializeFromStr for DateTime<FixedOffset>

Source§

impl DeserializeFromStr for DateTime<Utc>

Source§

impl DeserializeFromStr for NaiveDate

Source§

impl DeserializeFromStr for NaiveDateTime

Source§

impl<T: DeserializeFromStr> DeserializeFromStr for Option<T>

Source§

type Error = <T as DeserializeFromStr>::Error

Source§

fn deserialize_from_str(value: &str) -> Result<Self, Self::Error>
where Self: Sized,

Implementors§