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§

source

fn id(&self) -> String

A unique ID for this TimelineItem.

For debugging purposes.

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§