Struct CallNotifyEventContent
#[non_exhaustive]pub struct CallNotifyEventContent {
pub call_id: String,
pub application: ApplicationType,
pub notify_type: NotificationType,
pub mentions: Mentions,
}
๐Deprecated: Use the m.rtc.notification event instead.
Expand description
The content of an m.call.notify
event.
Fields (Non-exhaustive)ยง
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.call_id: String
๐Deprecated: Use the m.rtc.notification event instead.
A unique identifier for the call.
application: ApplicationType
๐Deprecated: Use the m.rtc.notification event instead.
The application this notify event applies to.
notify_type: NotificationType
๐Deprecated: Use the m.rtc.notification event instead.
How this notify event should notify the receiver.
mentions: Mentions
๐Deprecated: Use the m.rtc.notification event instead.
The users that are notified by this event (See MSC3952 (Intentional Mentions)).
Implementationsยง
ยงimpl CallNotifyEventContent
impl CallNotifyEventContent
pub fn new(
call_id: String,
application: ApplicationType,
notify_type: NotificationType,
mentions: Mentions,
) -> CallNotifyEventContent
pub fn new( call_id: String, application: ApplicationType, notify_type: NotificationType, mentions: Mentions, ) -> CallNotifyEventContent
Creates a new CallNotifyEventContent
with the given configuration.
Trait Implementationsยง
ยงimpl Clone for CallNotifyEventContent
impl Clone for CallNotifyEventContent
ยงfn clone(&self) -> CallNotifyEventContent
fn clone(&self) -> CallNotifyEventContent
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreยงimpl Debug for CallNotifyEventContent
impl Debug for CallNotifyEventContent
ยงimpl<'de> Deserialize<'de> for CallNotifyEventContent
impl<'de> Deserialize<'de> for CallNotifyEventContent
ยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<CallNotifyEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallNotifyEventContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
ยงimpl From<CallNotifyEventContent> for AnyMessageLikeEventContent
impl From<CallNotifyEventContent> for AnyMessageLikeEventContent
ยงfn from(c: CallNotifyEventContent) -> AnyMessageLikeEventContent
fn from(c: CallNotifyEventContent) -> AnyMessageLikeEventContent
Converts to this type from the input type.
ยงimpl MessageLikeEventContent for CallNotifyEventContent
impl MessageLikeEventContent for CallNotifyEventContent
ยงfn event_type(&self) -> MessageLikeEventType
fn event_type(&self) -> MessageLikeEventType
Get the eventโs type, like
m.room.message
.ยงimpl RedactContent for CallNotifyEventContent
impl RedactContent for CallNotifyEventContent
ยงtype Redacted = RedactedCallNotifyEventContent
type Redacted = RedactedCallNotifyEventContent
The redacted form of the eventโs content.
ยงfn redact(self, _rules: &RedactionRules) -> RedactedCallNotifyEventContent
fn redact(self, _rules: &RedactionRules) -> RedactedCallNotifyEventContent
Transform
self
into a redacted form (removing most or all fields) according to the spec. Read moreยงimpl Serialize for CallNotifyEventContent
impl Serialize for CallNotifyEventContent
ยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl JsonCastable<AnyMessageLikeEventContent> for CallNotifyEventContent
impl JsonCastable<Map<String, Value>> for CallNotifyEventContent
impl JsonCastable<RedactedCallNotifyEventContent> for CallNotifyEventContent
Auto Trait Implementationsยง
impl Freeze for CallNotifyEventContent
impl RefUnwindSafe for CallNotifyEventContent
impl Send for CallNotifyEventContent
impl Sync for CallNotifyEventContent
impl Unpin for CallNotifyEventContent
impl UnwindSafe for CallNotifyEventContent
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
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงimpl<T> CompatExt for T
impl<T> CompatExt for T
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.Sourceยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
Sourceยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
ยงimpl<T> EventContentFromType for Twhere
T: StaticEventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: StaticEventContent + DeserializeOwned,
Sourceยงimpl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Sourceยงfn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยง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>
Converts
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>
Converts
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 more