pub enum Constraint {
    KeyLifetime {
        seconds: u32,
    },
    Confirm,
    Extensions {
        name: Vec<u8>,
        details: Vec<u8>,
    },
}
Expand description

Constraints on how keys can be used

Variants§

§

KeyLifetime

Fields

§seconds: u32

The key shall disappear from the agent’s memory after that many seconds.

§

Confirm

Signatures need to be confirmed by the agent (for instance using a dialog).

§

Extensions

Fields

§name: Vec<u8>
§details: Vec<u8>

Custom constraints

Trait Implementations§

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.