pub struct Envelope<B> {
pub kind: String,
pub project: String,
pub install: Option<String>,
pub sequence: u64,
pub not_after: Option<DateTime<Utc>>,
pub signer_list_version: u64,
pub body: B,
}Expand description
The signed payload: a header and a kind-specific body.
Fields§
§kind: StringStatement kind, one of Kind’s type strings.
project: StringProject the statement belongs to, as named by signer list version 1.
install: Option<String>Install the statement is for, on install-bound kinds, in the form
crate::InstallId prints.
sequence: u64Grows with every statement of a kind; for signer lists, the version.
not_after: Option<DateTime<Utc>>When the statement stops being valid, if ever.
signer_list_version: u64Signer list version the signer took its keys from. For a signer list, the version that authorizes it: its own for version 1, otherwise the one before.
body: BKind-specific content.
Implementations§
Trait Implementations§
Source§impl<'de, B> Deserialize<'de> for Envelope<B>where
B: Deserialize<'de>,
impl<'de, B> Deserialize<'de> for Envelope<B>where
B: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<B: PartialEq> StructuralPartialEq for Envelope<B>
Auto Trait Implementations§
impl<B> Forget for Envelope<B>
impl<B> Freeze for Envelope<B>where
B: Freeze,
impl<B> Move for Envelope<B>
impl<B> RefUnwindSafe for Envelope<B>where
B: RefUnwindSafe,
impl<B> Send for Envelope<B>where
B: Send,
impl<B> Sync for Envelope<B>where
B: Sync,
impl<B> Unpin for Envelope<B>where
B: Unpin,
impl<B> UnsafeUnpin for Envelope<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Envelope<B>where
B: UnwindSafe,
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