Enum irma::AttributeRequest[][src]

pub enum AttributeRequest {
    Simple(String),
    Compound {
        attr_type: String,
        value: Option<String>,
        not_null: bool,
    },
}
Expand description

Representation of a request for a single specific attribute

Variants

Simple(String)

Request for any value of the named attribute

Tuple Fields of Simple

0: String
Compound

More complicated request for a value of the named attribute

Fields of Compound

attr_type: String

Which attribute is requested

value: Option<String>

The required value, if any

not_null: bool

Is a no-value result is acceptable?

Implementations

Create an attribute request for an attribute for which we require at least some value.

Create an attribute request where we want a specific value for the attribute to be disclosed This is useful when using IRMA not to learn something about the user, but instead enforcing some sort of access control, such as a minimum age.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more