Struct ruma_events::room::third_party_invite::PossiblyRedactedRoomThirdPartyInviteEventContent
source · #[non_exhaustive]pub struct PossiblyRedactedRoomThirdPartyInviteEventContent {
pub display_name: Option<String>,
pub key_validity_url: Option<String>,
pub public_key: Option<Base64>,
pub public_keys: Option<Vec<PublicKey>>,
}
Expand description
The possibly redacted form of RoomThirdPartyInviteEventContent
.
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
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.display_name: Option<String>
A user-readable string which represents the user who has been invited.
If the compat-optional
feature is enabled, this field being absent in JSON will result
in an empty string instead of an error when deserializing.
key_validity_url: Option<String>
A URL which can be fetched to validate whether the key has been revoked.
If the compat-optional
feature is enabled, this field being absent in JSON will result
in an empty string instead of an error when deserializing.
public_key: Option<Base64>
A base64-encoded Ed25519 key with which the token must be signed.
If the compat-optional
feature is enabled, this field being absent in JSON will result
in an empty string instead of an error when deserializing.
public_keys: Option<Vec<PublicKey>>
Keys with which the token may be signed.
Trait Implementations§
source§impl Clone for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Clone for PossiblyRedactedRoomThirdPartyInviteEventContent
source§fn clone(&self) -> PossiblyRedactedRoomThirdPartyInviteEventContent
fn clone(&self) -> PossiblyRedactedRoomThirdPartyInviteEventContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for PossiblyRedactedRoomThirdPartyInviteEventContent
impl<'de> Deserialize<'de> for PossiblyRedactedRoomThirdPartyInviteEventContent
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>,
source§impl EventContent for PossiblyRedactedRoomThirdPartyInviteEventContent
impl EventContent for PossiblyRedactedRoomThirdPartyInviteEventContent
§type EventType = StateEventType
type EventType = StateEventType
source§fn event_type(&self) -> Self::EventType
fn event_type(&self) -> Self::EventType
m.room.message
.Auto Trait Implementations§
impl Freeze for PossiblyRedactedRoomThirdPartyInviteEventContent
impl RefUnwindSafe for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Send for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Sync for PossiblyRedactedRoomThirdPartyInviteEventContent
impl Unpin for PossiblyRedactedRoomThirdPartyInviteEventContent
impl UnwindSafe for PossiblyRedactedRoomThirdPartyInviteEventContent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)