pub struct Unvalidated { /* private fields */ }
Expand description
The Unvalidated stage
This is created after generating the signing string from a parsed header, and transitions into the Unverified type by applying some basic validations
Implementations§
Source§impl Unvalidated
impl Unvalidated
Sourcepub fn validate(
self,
expires_after: Duration,
) -> Result<Unverified, ValidateError>
pub fn validate( self, expires_after: Duration, ) -> Result<Unverified, ValidateError>
Validate parts of the header, ensuring that the provided dates don’t indicate that it is expired.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Unvalidated
impl RefUnwindSafe for Unvalidated
impl Send for Unvalidated
impl Sync for Unvalidated
impl Unpin for Unvalidated
impl UnwindSafe for Unvalidated
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more