fractal::session::model::room::timeline::timeline_item

Trait TimelineItemExt

Source
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§

Source

fn timeline_id(&self) -> String

A unique ID for this TimelineItem in the local timeline.

Source

fn selectable(&self) -> bool

Whether this TimelineItem is selectable.

Defaults to false.

Source

fn show_header(&self) -> bool

Whether this TimelineItem should show its header.

Defaults to false.

Source

fn set_show_header(&self, show: bool)

Set whether this TimelineItem should show its header.

Source

fn can_hide_header(&self) -> bool

Whether this TimelineItem is allowed to hide its header.

Defaults to false.

Source

fn event_sender_id(&self) -> Option<OwnedUserId>

If this is a Matrix event, the sender of the event.

Defaults to None.

Implementors§