pub struct UnsignedValue<'a> { /* private fields */ }
Expand description

Represents a value + timestamp that has been successfully unsigned by TimestampSigner::unsign.

Implementations

The value that has been unsigned. This value is safe to use and was part of a payload that has been successfully unsigned.

The timestamp that the value was signed with.

For conveniently unwrapping the value and enforcing a max age, consider using value_if_not_expired.

Returns the value if the timestamp is not older than max_age. In the event that the timestamp is in the future, we’ll consider that valid.

If the value is expired, returns the BadTimedSignature::TimestampExpired vairant of BadTimedSignature.

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.

Should always be Self

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.