Trait fractal::session::model::room::timeline::timeline_item::TimelineItemExt
source · pub trait TimelineItemExt: 'static {
// Required methods
fn id(&self) -> String;
fn selectable(&self) -> bool;
fn show_header(&self) -> bool;
fn set_show_header(&self, show: bool);
fn can_hide_header(&self) -> bool;
fn event_sender_id(&self) -> Option<OwnedUserId>;
}
Expand description
Public trait containing implemented methods for everything that derives from
TimelineItem
.
To override the behavior of these methods, override the corresponding method
of TimelineItemImpl
.
Required Methods§
sourcefn selectable(&self) -> bool
fn selectable(&self) -> bool
Whether this TimelineItem
is selectable.
Defaults to false
.
sourcefn show_header(&self) -> bool
fn show_header(&self) -> bool
Whether this TimelineItem
should show its header.
Defaults to false
.
sourcefn set_show_header(&self, show: bool)
fn set_show_header(&self, show: bool)
Set whether this TimelineItem
should show its header.
sourcefn can_hide_header(&self) -> bool
fn can_hide_header(&self) -> bool
Whether this TimelineItem
is allowed to hide its header.
Defaults to false
.
sourcefn event_sender_id(&self) -> Option<OwnedUserId>
fn event_sender_id(&self) -> Option<OwnedUserId>
If this is a Matrix event, the sender of the event.
Defaults to None
.