pub struct ProductKeyCacheEntry {
pub product_id: String,
pub index: u32,
pub pubkey: [u8; 32],
}Expand description
A single cached product key entry — serialisable for persistence.
Fields§
§product_id: StringOpaque product identifier (e.g. "acme.dot").
index: u32Derivation index for the key slot.
pubkey: [u8; 32]32-byte sr25519 public key derived by the paired phone.
Trait Implementations§
Source§impl Clone for ProductKeyCacheEntry
impl Clone for ProductKeyCacheEntry
Source§fn clone(&self) -> ProductKeyCacheEntry
fn clone(&self) -> ProductKeyCacheEntry
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 ProductKeyCacheEntry
impl Debug for ProductKeyCacheEntry
Source§impl<'de> Deserialize<'de> for ProductKeyCacheEntry
impl<'de> Deserialize<'de> for ProductKeyCacheEntry
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 Freeze for ProductKeyCacheEntry
impl RefUnwindSafe for ProductKeyCacheEntry
impl Send for ProductKeyCacheEntry
impl Sync for ProductKeyCacheEntry
impl Unpin for ProductKeyCacheEntry
impl UnsafeUnpin for ProductKeyCacheEntry
impl UnwindSafe for ProductKeyCacheEntry
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