pub trait ParseFromParameter: Sized + Type {
    // Required method
    fn parse_from_parameter(value: &str) -> ParseResult<Self>;

    // Provided method
    fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>(
        iter: I
    ) -> ParseResult<Self> { ... }
}
Expand description

Represents a type that can parsing from parameter. (header, query, path, cookie)

Required Methods§

source

fn parse_from_parameter(value: &str) -> ParseResult<Self>

Parse from parameter.

Provided Methods§

source

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

Parse from multiple parameters.

Implementations on Foreign Types§

source§

impl ParseFromParameter for NaiveDate

source§

impl<T: ParseFromParameter> ParseFromParameter for Box<T>

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl ParseFromParameter for Ipv4Addr

source§

impl ParseFromParameter for DateTime<Utc>

source§

impl ParseFromParameter for usize

source§

impl ParseFromParameter for Ipv6Addr

source§

impl ParseFromParameter for f64

source§

impl ParseFromParameter for Duration

source§

impl ParseFromParameter for String

source§

impl ParseFromParameter for IpAddr

source§

impl ParseFromParameter for ObjectId

source§

impl ParseFromParameter for u16

source§

impl ParseFromParameter for Url

source§

impl ParseFromParameter for DateTime<FixedOffset>

source§

impl ParseFromParameter for OffsetDateTime

source§

impl ParseFromParameter for u64

source§

impl ParseFromParameter for Regex

source§

impl ParseFromParameter for i8

source§

impl ParseFromParameter for i64

source§

impl ParseFromParameter for NaiveDateTime

source§

impl ParseFromParameter for char

source§

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

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl<T: ParseFromParameter> ParseFromParameter for Arc<T>

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl ParseFromParameter for IpNet

source§

impl ParseFromParameter for f32

source§

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

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl ParseFromParameter for u8

source§

impl ParseFromParameter for u32

source§

impl ParseFromParameter for i32

source§

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

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl<T: ParseFromParameter> ParseFromParameter for Option<T>

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl ParseFromParameter for Date

source§

impl ParseFromParameter for Time

source§

impl ParseFromParameter for Ipv6Net

source§

impl ParseFromParameter for DateTime<Local>

source§

impl ParseFromParameter for i16

source§

impl<T: ParseFromParameter> ParseFromParameter for Vec<T>

source§

fn parse_from_parameter(_value: &str) -> ParseResult<Self>

source§

fn parse_from_parameters<I: IntoIterator<Item = A>, A: AsRef<str>>( iter: I ) -> ParseResult<Self>

source§

impl ParseFromParameter for Uri

source§

impl ParseFromParameter for NaiveTime

source§

impl ParseFromParameter for Decimal

source§

impl ParseFromParameter for Ipv4Net

source§

impl ParseFromParameter for Uuid

source§

impl ParseFromParameter for PrimitiveDateTime

source§

impl ParseFromParameter for bool

Implementors§