pub struct Event {Show 19 fields
pub item: RefCell<Option<EventTimelineItem>>,
pub room: OnceCell<Room>,
pub reactions: ReactionList,
pub read_receipts: ListStore,
pub state: Cell<MessageState>,
pub source: PhantomData<Option<String>>,
pub has_source: PhantomData<bool>,
pub event_id_string: PhantomData<Option<String>>,
pub timeline_id: RefCell<Option<String>>,
pub sender_id_string: PhantomData<String>,
pub timestamp: PhantomData<DateTime>,
pub timestamp_full: PhantomData<String>,
pub is_edited: PhantomData<bool>,
pub latest_edit_source: PhantomData<String>,
pub latest_edit_event_id_string: PhantomData<String>,
pub latest_edit_timestamp: PhantomData<Option<DateTime>>,
pub latest_edit_timestamp_full: PhantomData<String>,
pub is_highlighted: PhantomData<bool>,
pub has_read_receipts: PhantomData<bool>,
}
Fields§
§item: RefCell<Option<EventTimelineItem>>
The underlying SDK timeline item.
room: OnceCell<Room>
The room containing this Event
.
reactions: ReactionList
The reactions on this event.
read_receipts: ListStore
The read receipts on this event.
state: Cell<MessageState>
The state of this event.
source: PhantomData<Option<String>>
The pretty-formatted JSON source for this Event
, if it has
been echoed back by the server.
has_source: PhantomData<bool>
Whether we have the JSON source of this event.
event_id_string: PhantomData<Option<String>>
The event ID of this Event
, if it has been received from the
server, as a string.
timeline_id: RefCell<Option<String>>
The ID of this Event
in the SDK timeline.
sender_id_string: PhantomData<String>
The ID of the sender of this Event
, as a string.
timestamp: PhantomData<DateTime>
The timestamp of this Event
.
timestamp_full: PhantomData<String>
The full formatted timestamp of this Event
.
is_edited: PhantomData<bool>
Whether this Event
was edited.
latest_edit_source: PhantomData<String>
The pretty-formatted JSON source for the latest edit of this
Event
, if any.
latest_edit_event_id_string: PhantomData<String>
The ID for the latest edit of this Event
.
latest_edit_timestamp: PhantomData<Option<DateTime>>
The timestamp for the latest edit of this Event
, if any.
latest_edit_timestamp_full: PhantomData<String>
The full formatted timestamp for the latest edit of this Event
.
is_highlighted: PhantomData<bool>
Whether this Event
should be highlighted.
has_read_receipts: PhantomData<bool>
Whether this event has any read receipt.
Implementations§
source§impl Event
impl Event
sourcefn register_type()
fn register_type()
Registers the type only once.
source§impl Event
impl Event
sourcepub fn set_item(&self, item: EventTimelineItem, timeline_id: &str)
pub fn set_item(&self, item: EventTimelineItem, timeline_id: &str)
Set the underlying SDK timeline item of this Event
.
sourcepub fn raw(&self) -> Option<Raw<AnySyncTimelineEvent>>
pub fn raw(&self) -> Option<Raw<AnySyncTimelineEvent>>
The raw JSON source for this Event
, if it has been echoed back
by the server.
sourcefn source(&self) -> Option<String>
fn source(&self) -> Option<String>
The pretty-formatted JSON source for this Event
, if it has
been echoed back by the server.
sourcefn has_source(&self) -> bool
fn has_source(&self) -> bool
Whether we have the JSON source of this event.
sourcefn event_id_string(&self) -> Option<String>
fn event_id_string(&self) -> Option<String>
The event ID of this Event
, if it has been received from the
server, as a string.
sourcefn timeline_id(&self) -> String
fn timeline_id(&self) -> String
The ID of this Event
in the SDK timeline.
sourcefn sender_id_string(&self) -> String
fn sender_id_string(&self) -> String
The ID of the sender of this Event
, as a string.
sourcefn timestamp_full(&self) -> String
fn timestamp_full(&self) -> String
The full formatted timestamp of this Event
.
sourcefn latest_edit_raw(&self) -> Option<Raw<AnySyncTimelineEvent>>
fn latest_edit_raw(&self) -> Option<Raw<AnySyncTimelineEvent>>
The JSON source for the latest edit of this Event
, if any.
sourcefn latest_edit_source(&self) -> String
fn latest_edit_source(&self) -> String
The pretty-formatted JSON source for the latest edit of this
Event
.
sourcefn latest_edit_event_id_string(&self) -> String
fn latest_edit_event_id_string(&self) -> String
The ID of the latest edit of this Event
.
sourcefn latest_edit_timestamp(&self) -> Option<DateTime>
fn latest_edit_timestamp(&self) -> Option<DateTime>
The timestamp of the latest edit of this Event
, if any.
sourcefn latest_edit_timestamp_full(&self) -> String
fn latest_edit_timestamp_full(&self) -> String
The full formatted timestamp of the latest edit of this Event
.
sourcefn is_highlighted(&self) -> bool
fn is_highlighted(&self) -> bool
Whether this Event
should be highlighted.
sourcefn has_read_receipts(&self) -> bool
fn has_read_receipts(&self) -> bool
Whether this event has any read receipt.
Trait Implementations§
source§impl DerivedObjectProperties for Event
impl DerivedObjectProperties for Event
source§fn derived_properties() -> &'static [ParamSpec]
fn derived_properties() -> &'static [ParamSpec]
source§fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.source§fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.source§impl ObjectImpl for Event
impl ObjectImpl for Event
source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
source§fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
source§fn constructed(&self)
fn constructed(&self)
source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
self.notify("property")
.fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
source§impl ObjectSubclass for Event
impl ObjectSubclass for Event
source§type Interfaces = ()
type Interfaces = ()
source§type ParentType = TimelineItem
type ParentType = TimelineItem
source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
source§fn class_init(_klass: &mut Self::Class)
fn class_init(_klass: &mut Self::Class)
source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
source§fn instance_init(_obj: &InitializingObject<Self>)
fn instance_init(_obj: &InitializingObject<Self>)
source§impl ObjectSubclassType for Event
impl ObjectSubclassType for Event
source§impl TimelineItemImpl for Event
impl TimelineItemImpl for Event
fn id(&self) -> String
fn can_hide_header(&self) -> bool
fn event_sender_id(&self) -> Option<OwnedUserId>
fn selectable(&self) -> bool
Auto Trait Implementations§
impl !Freeze for Event
impl !RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
source§fn parent_constructed(&self)
fn parent_constructed(&self)
glib::Object::constructed()
.source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
glib::Object::notify()
.source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
glib::Object::dispatch_properties_changed()
.source§fn signal_chain_from_overridden(
&self,
token: &SignalClassHandlerToken,
values: &[Value],
) -> Option<Value>
fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>
source§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
source§fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
source§fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
self
.