#[non_exhaustive]pub struct LairApiResSecretBoxXSalsaByTag {
pub msg_id: Arc<str>,
pub nonce: [u8; 24],
pub cipher: Arc<[u8]>,
}
Expand description
A “crypto_box” encryption response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.msg_id: Arc<str>
Msg id to relate request / response.
nonce: [u8; 24]
The generated nonce.
cipher: Arc<[u8]>
The encrypted bytes.
Trait Implementations§
source§impl AsLairCodec for LairApiResSecretBoxXSalsaByTag
impl AsLairCodec for LairApiResSecretBoxXSalsaByTag
source§fn into_api_enum(self) -> LairApiEnum
fn into_api_enum(self) -> LairApiEnum
Convert this individual lair serialization object
into a combined API enum instance variant.
source§impl AsLairResponse for LairApiResSecretBoxXSalsaByTag
impl AsLairResponse for LairApiResSecretBoxXSalsaByTag
§type Request = LairApiReqSecretBoxXSalsaByTag
type Request = LairApiReqSecretBoxXSalsaByTag
The “Request” type associated with this response type.
source§impl<'de> Deserialize<'de> for LairApiResSecretBoxXSalsaByTag
impl<'de> Deserialize<'de> for LairApiResSecretBoxXSalsaByTag
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
Auto Trait Implementations§
impl RefUnwindSafe for LairApiResSecretBoxXSalsaByTag
impl Send for LairApiResSecretBoxXSalsaByTag
impl Sync for LairApiResSecretBoxXSalsaByTag
impl Unpin for LairApiResSecretBoxXSalsaByTag
impl UnwindSafe for LairApiResSecretBoxXSalsaByTag
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