pub struct LeanEvent {
pub event_id: String,
pub event_type: String,
pub state_key: String,
pub power_level: i64,
pub origin_server_ts: u64,
pub sender: String,
pub content: Value,
pub prev_events: Vec<String>,
pub auth_events: Vec<String>,
pub depth: u64,
}Expand description
A lightweight Matrix Event representation for Lean-equivalent resolution.
Fields§
§event_id: String§event_type: String§state_key: String§power_level: i64§origin_server_ts: u64§sender: String§content: Value§prev_events: Vec<String>§auth_events: Vec<String>§depth: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LeanEvent
impl<'de> Deserialize<'de> for LeanEvent
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
impl Eq for LeanEvent
Source§impl Ord for LeanEvent
impl Ord for LeanEvent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl Freeze for LeanEvent
impl RefUnwindSafe for LeanEvent
impl Send for LeanEvent
impl Sync for LeanEvent
impl Unpin for LeanEvent
impl UnsafeUnpin for LeanEvent
impl UnwindSafe for LeanEvent
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