pub trait ParseFromJSON: Sized + Type {
    // Required method
    fn parse_from_json(value: Option<Value>) -> ParseResult<Self>;

    // Provided method
    fn parse_from_json_string(s: &str) -> ParseResult<Self> { ... }
}
Expand description

Represents a type that can parsing from JSON.

Required Methods§

Provided Methods§

source

fn parse_from_json_string(s: &str) -> ParseResult<Self>

Parse from JSON string.

Implementations on Foreign Types§

source§

impl ParseFromJSON for Time

source§

impl ParseFromJSON for DateTime<Local>

source§

impl<T: ParseFromJSON + Ord> ParseFromJSON for BTreeSet<T>

source§

impl ParseFromJSON for IpAddr

source§

impl ParseFromJSON for ObjectId

source§

impl ParseFromJSON for Ipv4Addr

source§

impl ParseFromJSON for u32

source§

impl ParseFromJSON for NaiveDateTime

source§

impl ParseFromJSON for Date

source§

impl ParseFromJSON for Uuid

source§

impl ParseFromJSON for Value

source§

impl ParseFromJSON for OffsetDateTime

source§

impl<T: ParseFromJSON, const LEN: usize> ParseFromJSON for [T; LEN]

source§

impl ParseFromJSON for u64

source§

impl ParseFromJSON for Duration

source§

impl ParseFromJSON for Url

source§

impl ParseFromJSON for Uri

source§

impl ParseFromJSON for usize

source§

impl ParseFromJSON for u8

source§

impl ParseFromJSON for i64

source§

impl ParseFromJSON for f64

source§

impl ParseFromJSON for char

source§

impl<T: ParseFromJSON> ParseFromJSON for Option<T>

source§

impl<T: ParseFromJSON> ParseFromJSON for Vec<T>

source§

impl<T: ParseFromJSON + Hash + Eq> ParseFromJSON for HashSet<T>

source§

impl ParseFromJSON for DateTime<FixedOffset>

source§

impl ParseFromJSON for PrimitiveDateTime

source§

impl ParseFromJSON for i32

source§

impl ParseFromJSON for f32

source§

impl ParseFromJSON for bool

source§

impl ParseFromJSON for Ipv6Net

source§

impl ParseFromJSON for u16

source§

impl<K, V> ParseFromJSON for HashMap<K, V>where K: ToString + FromStr + Eq + Hash + Sync + Send, K::Err: Display, V: ParseFromJSON,

source§

impl ParseFromJSON for String

source§

impl ParseFromJSON for i16

source§

impl ParseFromJSON for Ipv4Net

source§

impl ParseFromJSON for Regex

source§

impl<K, V> ParseFromJSON for BTreeMap<K, V>where K: ToString + FromStr + Ord + Sync + Send, K::Err: Display, V: ParseFromJSON,

source§

impl ParseFromJSON for DateTime<Utc>

source§

impl ParseFromJSON for NaiveDate

source§

impl ParseFromJSON for Decimal

source§

impl ParseFromJSON for IpNet

source§

impl ParseFromJSON for Ipv6Addr

source§

impl ParseFromJSON for i8

source§

impl<T: ParseFromJSON> ParseFromJSON for Box<T>

source§

impl ParseFromJSON for NaiveTime

source§

impl<T: ParseFromJSON> ParseFromJSON for Arc<T>

Implementors§