pub struct InboxMetadata {
pub inbox_id: String,
pub owner: PeerId,
pub created_at: SystemTime,
pub message_count: usize,
pub max_messages: usize,
pub is_public: bool,
pub access_keys: Vec<PeerId>,
}
Expand description
Inbox metadata stored in DHT
Fields§
§inbox_id: String
§owner: PeerId
§created_at: SystemTime
§message_count: usize
§max_messages: usize
§is_public: bool
§access_keys: Vec<PeerId>
Trait Implementations§
Source§impl Clone for InboxMetadata
impl Clone for InboxMetadata
Source§fn clone(&self) -> InboxMetadata
fn clone(&self) -> InboxMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InboxMetadata
impl Debug for InboxMetadata
Source§impl<'de> Deserialize<'de> for InboxMetadata
impl<'de> Deserialize<'de> for InboxMetadata
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 InboxMetadata
impl RefUnwindSafe for InboxMetadata
impl Send for InboxMetadata
impl Sync for InboxMetadata
impl Unpin for InboxMetadata
impl UnwindSafe for InboxMetadata
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