#[non_exhaustive]pub struct PossiblyRedactedRoomPresenceSharingEventContent {
pub presence_sharing: Option<PresenceSharingHint>,
}Expand description
The possibly redacted form of RoomPresenceSharingEventContent.
This type is used when it’s not obvious whether the content is redacted or not.
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.presence_sharing: Option<PresenceSharingHint>The room’s presence sharing hint.
Trait Implementations§
Source§impl Clone for PossiblyRedactedRoomPresenceSharingEventContent
impl Clone for PossiblyRedactedRoomPresenceSharingEventContent
Source§fn clone(&self) -> PossiblyRedactedRoomPresenceSharingEventContent
fn clone(&self) -> PossiblyRedactedRoomPresenceSharingEventContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for PossiblyRedactedRoomPresenceSharingEventContent
impl<'de> Deserialize<'de> for PossiblyRedactedRoomPresenceSharingEventContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PossiblyRedactedRoomPresenceSharingEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature unstable-msc4495 only.
impl From<PossiblyRedactedRoomPresenceSharingEventContent> for AnyPossiblyRedactedStateEventContent
Available on crate feature
unstable-msc4495 only.Source§fn from(c: PossiblyRedactedRoomPresenceSharingEventContent) -> Self
fn from(c: PossiblyRedactedRoomPresenceSharingEventContent) -> Self
Converts to this type from the input type.
Source§impl From<RedactedRoomPresenceSharingEventContent> for PossiblyRedactedRoomPresenceSharingEventContent
impl From<RedactedRoomPresenceSharingEventContent> for PossiblyRedactedRoomPresenceSharingEventContent
Source§fn from(
value: RedactedRoomPresenceSharingEventContent,
) -> PossiblyRedactedRoomPresenceSharingEventContent
fn from( value: RedactedRoomPresenceSharingEventContent, ) -> PossiblyRedactedRoomPresenceSharingEventContent
Converts to this type from the input type.
Source§impl From<RoomPresenceSharingEventContent> for PossiblyRedactedRoomPresenceSharingEventContent
impl From<RoomPresenceSharingEventContent> for PossiblyRedactedRoomPresenceSharingEventContent
Source§fn from(
value: RoomPresenceSharingEventContent,
) -> PossiblyRedactedRoomPresenceSharingEventContent
fn from( value: RoomPresenceSharingEventContent, ) -> PossiblyRedactedRoomPresenceSharingEventContent
Converts to this type from the input type.
impl JsonCastable<AnyPossiblyRedactedStateEventContent> for PossiblyRedactedRoomPresenceSharingEventContent
Available on crate feature
unstable-msc4495 only.impl JsonCastable<Map<String, Value>> for PossiblyRedactedRoomPresenceSharingEventContent
impl JsonCastable<PossiblyRedactedRoomPresenceSharingEventContent> for RoomPresenceSharingEventContent
impl JsonCastable<PossiblyRedactedRoomPresenceSharingEventContent> for PossiblyRedactedRoomPresenceSharingEventContent
Source§impl PossiblyRedactedStateEventContent for PossiblyRedactedRoomPresenceSharingEventContent
impl PossiblyRedactedStateEventContent for PossiblyRedactedRoomPresenceSharingEventContent
Source§type StateKey = EmptyStateKey
type StateKey = EmptyStateKey
The type of the event’s
state_key field.Source§fn event_type(&self) -> StateEventType
fn event_type(&self) -> StateEventType
Get the event’s type, like
m.room.name.Source§impl RedactContent for PossiblyRedactedRoomPresenceSharingEventContent
impl RedactContent for PossiblyRedactedRoomPresenceSharingEventContent
Source§type Redacted = PossiblyRedactedRoomPresenceSharingEventContent
type Redacted = PossiblyRedactedRoomPresenceSharingEventContent
The redacted form of the event’s content.
Source§fn redact(
self,
_rules: &RedactionRules,
) -> PossiblyRedactedRoomPresenceSharingEventContent
fn redact( self, _rules: &RedactionRules, ) -> PossiblyRedactedRoomPresenceSharingEventContent
Transform
self into a redacted form (removing most or all fields) according to the spec. Read moreAuto Trait Implementations§
impl Freeze for PossiblyRedactedRoomPresenceSharingEventContent
impl RefUnwindSafe for PossiblyRedactedRoomPresenceSharingEventContent
impl Send for PossiblyRedactedRoomPresenceSharingEventContent
impl Sync for PossiblyRedactedRoomPresenceSharingEventContent
impl Unpin for PossiblyRedactedRoomPresenceSharingEventContent
impl UnsafeUnpin for PossiblyRedactedRoomPresenceSharingEventContent
impl UnwindSafe for PossiblyRedactedRoomPresenceSharingEventContent
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> EventContentFromType for Twhere
T: StaticEventContent + DeserializeOwned,
impl<T> EventContentFromType for Twhere
T: StaticEventContent + DeserializeOwned,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more