pub struct ArchiveMap {
pub v: u32,
pub chats: BTreeMap<String, Value>,
pub other: Map<String, Value>,
}Expand description
chat id → the newest message time the archiving device had seen (unix ms). A chat counts as archived only while nothing newer has been said in it, so a reply brings it back on every device whether or not this list has caught up.
Entries stay raw JSON, and unknown keys ride along, so an entry in a shape a newer build writes survives this one’s republish instead of collapsing the whole map.
Fields§
§v: u32§chats: BTreeMap<String, Value>§other: Map<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for ArchiveMap
impl Clone for ArchiveMap
Source§impl Debug for ArchiveMap
impl Debug for ArchiveMap
Source§impl Default for ArchiveMap
impl Default for ArchiveMap
Source§impl<'de> Deserialize<'de> for ArchiveMap
impl<'de> Deserialize<'de> for ArchiveMap
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 PartialEq for ArchiveMap
impl PartialEq for ArchiveMap
Source§impl Serialize for ArchiveMap
impl Serialize for ArchiveMap
impl StructuralPartialEq for ArchiveMap
Auto Trait Implementations§
impl Forget for ArchiveMap
impl Freeze for ArchiveMap
impl Move for ArchiveMap
impl RefUnwindSafe for ArchiveMap
impl Send for ArchiveMap
impl Sync for ArchiveMap
impl Unpin for ArchiveMap
impl UnsafeUnpin for ArchiveMap
impl UnwindSafe for ArchiveMap
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more