pub(crate) trait TimelineItemExt: 'static {
// Required methods
fn timeline_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 timeline_id(&self) -> String
fn timeline_id(&self) -> String
A unique ID for this TimelineItem
in the local timeline.
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
.