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)
Tuple Fields
0: String
Request for any value of the named attribute
Compound
Fields
attr_type: String
Which attribute is requested
not_null: bool
Is a no-value result is acceptable?
More complicated request for a value of the named attribute
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AttributeRequest
impl Send for AttributeRequest
impl Sync for AttributeRequest
impl Unpin for AttributeRequest
impl UnwindSafe for AttributeRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
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