pub struct RefreshCapV0 {
pub refresh_secret: Vec<(Digest, ByteBuf)>,
}
Fields§
§refresh_secret: Vec<(Digest, ByteBuf)>
an ordered list of user IDs, with their corresponding crypto_box of a RefreshSecretV0. A hashed User ID for each Member (use author_digest()), Signer and Owner of the repo (except the one that is being excluded, if any) the ordering is important as it allows receivers to perform a binary search on the array (searching for their own ID) the refresh secret is used for encrypting the SyncSignature commit’s key in the event sent in old topic (RefreshSecretV0.0) and for an optional write_cap refresh (RefreshSecretV0.1)
Trait Implementations§
Source§impl Clone for RefreshCapV0
impl Clone for RefreshCapV0
Source§fn clone(&self) -> RefreshCapV0
fn clone(&self) -> RefreshCapV0
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 RefreshCapV0
impl Debug for RefreshCapV0
Source§impl<'de> Deserialize<'de> for RefreshCapV0
impl<'de> Deserialize<'de> for RefreshCapV0
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 RefreshCapV0
impl PartialEq for RefreshCapV0
Source§impl Serialize for RefreshCapV0
impl Serialize for RefreshCapV0
impl Eq for RefreshCapV0
impl StructuralPartialEq for RefreshCapV0
Auto Trait Implementations§
impl Freeze for RefreshCapV0
impl RefUnwindSafe for RefreshCapV0
impl Send for RefreshCapV0
impl Sync for RefreshCapV0
impl Unpin for RefreshCapV0
impl UnwindSafe for RefreshCapV0
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