pub struct Envelope {
pub v: u8,
pub vk: String,
pub pk: String,
pub kind: PayloadKind,
pub payload: Value,
pub parent: Option<String>,
pub id: String,
pub sig: String,
}Expand description
Parsed, verified GXT record.
Represents a decoded token after signature verification and/or decryption.
Fields§
§v: u8Version
vk: StringVerification Key
pk: StringPublic Key
kind: PayloadKindPayload Kind
payload: ValueOpaque Payload
parent: Option<String>Id of the Parent Message
id: StringId of this Message
sig: StringSignature of this Message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnwindSafe for Envelope
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