pub trait DraftFields {
// Required methods
fn event_type(&self) -> &TimelineEventType;
fn sender(&self) -> &UserId;
fn state_key(&self) -> Option<&str>;
fn content(&self) -> Cow<'_, RawValue>;
fn redacts(&self) -> Option<&EventId>;
}Expand description
A trait which accesses fields of a draft event
Required Methods§
Sourcefn event_type(&self) -> &TimelineEventType
fn event_type(&self) -> &TimelineEventType
Get the event type of the event
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".