pub struct CommunePublicRoomEventContent {
pub public: bool,
}Fields§
§public: boolTrait Implementations§
Source§impl Clone for CommunePublicRoomEventContent
impl Clone for CommunePublicRoomEventContent
Source§fn clone(&self) -> CommunePublicRoomEventContent
fn clone(&self) -> CommunePublicRoomEventContent
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 moreSource§impl<'de> Deserialize<'de> for CommunePublicRoomEventContent
impl<'de> Deserialize<'de> for CommunePublicRoomEventContent
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 EventContent for CommunePublicRoomEventContent
impl EventContent for CommunePublicRoomEventContent
Source§type EventType = StateEventType
type EventType = StateEventType
The Rust enum for the event kind’s known types.
Source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
Get the event’s type, like
m.room.message.Source§impl RedactContent for CommunePublicRoomEventContent
impl RedactContent for CommunePublicRoomEventContent
Source§type Redacted = RedactedCommunePublicRoomEventContent
type Redacted = RedactedCommunePublicRoomEventContent
The redacted form of the event’s content.
Source§fn redact(
self,
version: &RoomVersionId,
) -> RedactedCommunePublicRoomEventContent
fn redact( self, version: &RoomVersionId, ) -> RedactedCommunePublicRoomEventContent
Transform
self into a redacted form (removing most or all fields) according to the spec. Read moreSource§impl StaticStateEventContent for CommunePublicRoomEventContent
impl StaticStateEventContent for CommunePublicRoomEventContent
Source§type PossiblyRedacted = PossiblyRedactedCommunePublicRoomEventContent
type PossiblyRedacted = PossiblyRedactedCommunePublicRoomEventContent
The possibly redacted form of the event’s content.
Source§type Unsigned = StateUnsigned<<CommunePublicRoomEventContent as StaticStateEventContent>::PossiblyRedacted>
type Unsigned = StateUnsigned<<CommunePublicRoomEventContent as StaticStateEventContent>::PossiblyRedacted>
The type of the event’s
unsigned field.Auto Trait Implementations§
impl Freeze for CommunePublicRoomEventContent
impl RefUnwindSafe for CommunePublicRoomEventContent
impl Send for CommunePublicRoomEventContent
impl Sync for CommunePublicRoomEventContent
impl Unpin for CommunePublicRoomEventContent
impl UnwindSafe for CommunePublicRoomEventContent
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