pub struct Envelope<'a> {
pub content: Cow<'a, EnvelopeContent>,
pub sender_pubkey: Option<Vec<u8>>,
pub sender_sig: Option<Vec<u8>>,
pub sender_delegation: Option<Vec<SignedDelegation>>,
}
Expand description
The authentication envelope, containing the contents and their signature.
Fields§
§content: Cow<'a, EnvelopeContent>
The data that is signed by the caller.
sender_pubkey: Option<Vec<u8>>
The public key of the self-signing principal this request is from.
sender_sig: Option<Vec<u8>>
A cryptographic signature authorizing the request. Not necessarily made by sender_pubkey
; when delegations are involved,
sender_sig
is the tail of the delegation chain, and sender_pubkey
is the head.
sender_delegation: Option<Vec<SignedDelegation>>
The chain of delegations connecting sender_pubkey
to sender_sig
, and in that order.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Envelope<'a>
impl<'de, 'a> Deserialize<'de> for Envelope<'a>
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Envelope<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Envelope<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Serialize for Envelope<'a>
impl<'a> Serialize for Envelope<'a>
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for Envelope<'a>
impl<'a> RefUnwindSafe for Envelope<'a>
impl<'a> Send for Envelope<'a>
impl<'a> Sync for Envelope<'a>
impl<'a> Unpin for Envelope<'a>
impl<'a> UnwindSafe for Envelope<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)