pub struct GroupSenderKeyMessage {
pub group_id: String,
pub sender_event_pubkey: String,
pub key_id: u32,
pub message_number: u32,
pub created_at: i64,
pub ciphertext: String,
}Expand description
A published one-to-many group message. The sender_event_pubkey
locates the receiving chain; key_id + message_number index it.
ciphertext is the base64 NIP-44 v2 payload from the chain.
Fields§
§group_id: String§sender_event_pubkey: String§key_id: u32§message_number: u32§created_at: i64§ciphertext: StringTrait Implementations§
Source§impl Clone for GroupSenderKeyMessage
impl Clone for GroupSenderKeyMessage
Source§fn clone(&self) -> GroupSenderKeyMessage
fn clone(&self) -> GroupSenderKeyMessage
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 GroupSenderKeyMessage
impl Debug for GroupSenderKeyMessage
impl Eq for GroupSenderKeyMessage
Source§impl<'input> FromJson<'input> for GroupSenderKeyMessage
impl<'input> FromJson<'input> for GroupSenderKeyMessage
Source§impl PartialEq for GroupSenderKeyMessage
impl PartialEq for GroupSenderKeyMessage
impl StructuralPartialEq for GroupSenderKeyMessage
Source§impl ToJson for GroupSenderKeyMessage
impl ToJson for GroupSenderKeyMessage
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 GroupSenderKeyMessage
impl RefUnwindSafe for GroupSenderKeyMessage
impl Send for GroupSenderKeyMessage
impl Sync for GroupSenderKeyMessage
impl Unpin for GroupSenderKeyMessage
impl UnsafeUnpin for GroupSenderKeyMessage
impl UnwindSafe for GroupSenderKeyMessage
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