pub struct NewCircle {
pub circle: CircleId,
pub name: String,
pub breaking_version: u32,
pub key: KeyId,
pub key_hash: [u8; 32],
}Expand description
A circle that creating a store or admitting a member makes, with the commitment to the circle key it introduces (§10.3, §13.2, D6). A creation’s circles are the creator’s: her private circle, whose only member she is, and the circles her first write asks for. An admission’s is the admitted person’s, its first and only member, and its key’s one copy is the admission’s own copy.
Fields§
§circle: CircleIdThe new circle’s id: no circle, live or deleted, has it.
name: StringThe circle’s name.
breaking_version: u32The newest breaking migration its maker’s app had run, zero if none: the circle’s schema version until a raise of its own goes past it (§15.5, §16.3).
key: KeyIdThe first circle key, introduced by the creation or admission.
key_hash: [u8; 32]SHA-256 of the exact 32 circle-key bytes.
Trait Implementations§
impl Eq for NewCircle
impl StructuralPartialEq for NewCircle
Auto Trait Implementations§
impl Freeze for NewCircle
impl RefUnwindSafe for NewCircle
impl Send for NewCircle
impl Sync for NewCircle
impl Unpin for NewCircle
impl UnsafeUnpin for NewCircle
impl UnwindSafe for NewCircle
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more