pub struct ChannelEvent {
pub seq: u64,
pub ts: DateTime<Utc>,
pub actor: ChannelActor,
pub kind: EventKind,
pub payload: Value,
pub idempotency_key: Option<String>,
pub sig: Option<String>,
pub key_version: Option<u32>,
}Expand description
One append-only line in ~/.mur/channels/<id>/events.jsonl.
Fields§
§seq: u64§ts: DateTime<Utc>§actor: ChannelActor§kind: EventKind§payload: Value§idempotency_key: Option<String>§sig: Option<String>Detached Ed25519 signature (multibase) by the channel’s WRITER over the
canonical sign-input {v, channel_id, actor, kind, payload, idempotency_key} — EXCLUDING the store-assigned seq/ts (see
mur-channel sign::sign_input). None for legacy/unsigned events.
key_version: Option<u32>RESERVED — key version for the signing key (v3d).
Trait Implementations§
Source§impl Clone for ChannelEvent
impl Clone for ChannelEvent
Source§fn clone(&self) -> ChannelEvent
fn clone(&self) -> ChannelEvent
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 ChannelEvent
impl Debug for ChannelEvent
Source§impl<'de> Deserialize<'de> for ChannelEvent
impl<'de> Deserialize<'de> for ChannelEvent
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
Auto Trait Implementations§
impl Freeze for ChannelEvent
impl RefUnwindSafe for ChannelEvent
impl Send for ChannelEvent
impl Sync for ChannelEvent
impl Unpin for ChannelEvent
impl UnsafeUnpin for ChannelEvent
impl UnwindSafe for ChannelEvent
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