pub struct SenderKeyDistribution {
pub group_id: String,
pub key_id: u32,
pub sender_event_pubkey: String,
pub chain_key: String,
pub iteration: u32,
pub created_at: i64,
}Expand description
Seed for one sender-key chain, distributed to members over their 1:1 sessions.
JSON field names are camelCase to match the reference
SenderKeyDistribution byte-for-byte on the wire; chain_key is
64-char hex.
Fields§
§group_id: String§key_id: u32§sender_event_pubkey: String§chain_key: String§iteration: u32§created_at: i64Trait Implementations§
Source§impl Clone for SenderKeyDistribution
impl Clone for SenderKeyDistribution
Source§fn clone(&self) -> SenderKeyDistribution
fn clone(&self) -> SenderKeyDistribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SenderKeyDistribution
impl Debug for SenderKeyDistribution
impl Eq for SenderKeyDistribution
Source§impl<'input> FromJson<'input> for SenderKeyDistribution
impl<'input> FromJson<'input> for SenderKeyDistribution
Source§impl PartialEq for SenderKeyDistribution
impl PartialEq for SenderKeyDistribution
impl StructuralPartialEq for SenderKeyDistribution
Source§impl ToJson for SenderKeyDistribution
impl ToJson for SenderKeyDistribution
Source§fn write_json<__W: JsonWrite + ?Sized>(
&self,
__w: &mut __W,
) -> Result<(), __W::Error>
fn write_json<__W: JsonWrite + ?Sized>( &self, __w: &mut __W, ) -> Result<(), __W::Error>
Serialize
self into w.Source§const MIN_SERIALIZED_LEN: usize = 0
const MIN_SERIALIZED_LEN: usize = 0
Lower bound on the number of bytes
write_json will emit. Read moreSource§const MAX_SERIALIZED_LEN: usize = 0
const MAX_SERIALIZED_LEN: usize = 0
Upper bound on the bytes a single
write_json call emits, used by
sequence impls to pre-reserve buffer capacity. 0 means “no useful
upper bound” — sequence impls skip the reservation in that case. Read moreSource§unsafe fn write_json_in_reserved<W>(
&self,
w: &mut W,
) -> Result<(), <W as JsonWrite>::Error>
unsafe fn write_json_in_reserved<W>( &self, w: &mut W, ) -> Result<(), <W as JsonWrite>::Error>
Serialize
self into w ASSUMING the caller has already reserved
at least MAX_SERIALIZED_LEN writable bytes in the sink. Used by
[[T]::write_json] after its reserve_hint call so the per-element
path skips its own cap checks. Read moreSource§const NEEDS_VALIDATION: bool = false
const NEEDS_VALIDATION: bool = false
Whether this type requires a pre-scan validation pass before
the per-element fast path can be entered. Defaults to
false. Read moreAuto Trait Implementations§
impl Freeze for SenderKeyDistribution
impl RefUnwindSafe for SenderKeyDistribution
impl Send for SenderKeyDistribution
impl Sync for SenderKeyDistribution
impl Unpin for SenderKeyDistribution
impl UnsafeUnpin for SenderKeyDistribution
impl UnwindSafe for SenderKeyDistribution
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