pub struct SenderInfo {
pub info: Vec<u8>,
pub signer: Vec<u8>,
pub sig: Vec<u8>,
}Expand description
Canister-certified sender information attached to a request envelope.
sig must be a canister signature (domain separator \x0Eic-sender-info) over the info
field, verifiable using the envelope’s sender_pubkey as the canister sig public key.
Fields§
§info: Vec<u8>The sender information to be passed to the canister.
signer: Vec<u8>The principal (as raw bytes) of the canister that signed the info.
sig: Vec<u8>A canister signature over \x0Eic-sender-info || info.
Trait Implementations§
Source§impl Clone for SenderInfo
impl Clone for SenderInfo
Source§fn clone(&self) -> SenderInfo
fn clone(&self) -> SenderInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SenderInfo
impl Debug for SenderInfo
Source§impl<'de> Deserialize<'de> for SenderInfo
impl<'de> Deserialize<'de> for SenderInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SenderInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SenderInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SenderInfo
impl Serialize for SenderInfo
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 Freeze for SenderInfo
impl RefUnwindSafe for SenderInfo
impl Send for SenderInfo
impl Sync for SenderInfo
impl Unpin for SenderInfo
impl UnsafeUnpin for SenderInfo
impl UnwindSafe for SenderInfo
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