pub trait PossiblyRedactedStateEventContent: Sized + Serialize {
type StateKey: AsRef<str> + Clone + Debug + DeserializeOwned + Serialize;
// Required method
fn event_type(&self) -> StateEventType;
}
Available on crate feature
events
only.Expand description
Content of a state event.
Required Associated Types§
Required Methods§
Sourcefn event_type(&self) -> StateEventType
fn event_type(&self) -> StateEventType
Get the event’s type, like m.room.name
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.