#[non_exhaustive]pub enum Form {
Unsigned,
Signed,
Encrypted,
}Expand description
The three forms a vCon can take. A later release may add one, so a
match on it outside this crate needs a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unsigned
Plain JSON.
Signed
A JWS whose payload is the vCon.
Encrypted
A JWE whose ciphertext is a signed vCon.
Implementations§
Trait Implementations§
impl Copy for Form
Source§impl Display for Form
Writes Form::as_str.
impl Display for Form
Writes Form::as_str.
impl Eq for Form
impl StructuralPartialEq for Form
Auto Trait Implementations§
impl Forget for Form
impl Freeze for Form
impl Move for Form
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnsafeUnpin for Form
impl UnwindSafe for Form
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