pub struct StoreUpdateV0 {
pub store: StoreRepo,
pub store_read_cap: ReadCap,
pub overlay_branch_read_cap: ReadCap,
pub metadata: Vec<u8>,
}
Expand description
Updates the ReadCap of the public, protected sites, Group and Dialog stores of the User
DEPS to the previous ones. this is used to speedup joining the overlay of such stores, for new devices on new brokers so they don’t have to read the whole pub/sub of the StoreRepo in order to get the last ReadCap
Fields§
§store: StoreRepo
§store_read_cap: ReadCap
§overlay_branch_read_cap: ReadCap
§metadata: Vec<u8>
Metadata
Trait Implementations§
Source§impl Clone for StoreUpdateV0
impl Clone for StoreUpdateV0
Source§fn clone(&self) -> StoreUpdateV0
fn clone(&self) -> StoreUpdateV0
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 StoreUpdateV0
impl Debug for StoreUpdateV0
Source§impl<'de> Deserialize<'de> for StoreUpdateV0
impl<'de> Deserialize<'de> for StoreUpdateV0
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 StoreUpdateV0
impl PartialEq for StoreUpdateV0
Source§impl Serialize for StoreUpdateV0
impl Serialize for StoreUpdateV0
impl Eq for StoreUpdateV0
impl StructuralPartialEq for StoreUpdateV0
Auto Trait Implementations§
impl Freeze for StoreUpdateV0
impl RefUnwindSafe for StoreUpdateV0
impl Send for StoreUpdateV0
impl Sync for StoreUpdateV0
impl Unpin for StoreUpdateV0
impl UnwindSafe for StoreUpdateV0
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