pub struct DwnItem {
pub discover: PublicKey,
pub delete: Option<PublicKey>,
pub payload: Vec<u8>,
}
Fields§
§discover: PublicKey
§delete: Option<PublicKey>
§payload: Vec<u8>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DwnItem
impl<'de> Deserialize<'de> for DwnItem
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
source§impl Indexable for DwnItem
impl Indexable for DwnItem
const PRIMARY_KEY: &'static str = "discover"
fn primary_key(&self) -> Vec<u8> ⓘ
fn secondary_keys(&self) -> Index
const DEFAULT_SORT: &'static str = Self::PRIMARY_KEY
source§impl Ord for DwnItem
impl Ord for DwnItem
source§impl PartialOrd for DwnItem
impl PartialOrd for DwnItem
impl Eq for DwnItem
impl StructuralPartialEq for DwnItem
Auto Trait Implementations§
impl Freeze for DwnItem
impl RefUnwindSafe for DwnItem
impl Send for DwnItem
impl Sync for DwnItem
impl Unpin for DwnItem
impl UnwindSafe for DwnItem
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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.