Struct irma::Credential [−][src]
pub struct Credential {
pub credential: String,
pub validity: Option<u64>,
pub attributes: HashMap<String, String>,
}
Expand description
Description of an IRMA credential to be issued. The issuing IRMA server requires the private key of the issuer to be present to be able to issue a credential.
Fields
credential: String
Identifier of the credential to be issued
validity: Option<u64>
Unix timestamp of until when the credential is valid. This is rounded down by the server to the nearest week. When not present, the server will default the credential to be valid for 6 months
attributes: HashMap<String, String>
Values for the attributes in the credential
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 Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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