attribution 0.5.0

A declarative custom attribute parsing framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod convert;
mod parsing;

pub use self::convert::TryIntoParamValError;

/// 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")]`)
#[derive(Debug, PartialEq)]
pub enum ParamVal {
    Array(Vec<ParamVal>),
    Bool(bool),
    Int(i64),
    Float(f64),
    Str(String),
}