[][src]Enum attribution::ParamVal

pub enum ParamVal {
    Array(Vec<ParamVal>),
    Bool(bool),
    Int(i64),
    Float(f64),
    Str(String),
}

Represents a value for a parameter name within Parameters struct. The parameter value is the value that appears to the right of the equal sign (e.g. "value" is the ParamVal in the following example #[example(name = "value")])

Variants

Array(Vec<ParamVal>)
Bool(bool)
Int(i64)
Float(f64)
Str(String)

Trait Implementations

impl Debug for ParamVal[src]

impl<'_> From<&'_ str> for ParamVal[src]

impl From<String> for ParamVal[src]

impl From<bool> for ParamVal[src]

impl From<f64> for ParamVal[src]

impl From<i64> for ParamVal[src]

impl Parse for ParamVal[src]

impl PartialEq<ParamVal> for ParamVal[src]

impl StructuralPartialEq for ParamVal[src]

impl TryFrom<Expr> for ParamVal[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl TryFrom<ExprArray> for ParamVal[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl TryFrom<ExprLit> for ParamVal[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl TryFrom<ExprUnary> for ParamVal[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl TryFrom<Lit> for ParamVal[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl TryFrom<ParamVal> for bool[src]

type Error = TryIntoParamValError

The type returned in the event of a conversion error.

impl TryFrom<ParamVal> for f64[src]

type Error = TryIntoParamValError

The type returned in the event of a conversion error.

impl TryFrom<ParamVal> for i64[src]

type Error = TryIntoParamValError

The type returned in the event of a conversion error.

impl TryFrom<ParamVal> for String[src]

type Error = TryIntoParamValError

The type returned in the event of a conversion error.

impl<T> TryFrom<ParamVal> for Vec<T> where
    T: TryFrom<ParamVal, Error = TryIntoParamValError>, 
[src]

type Error = TryIntoParamValError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.