Struct ruma::api::federation::thirdparty::bind_callback::v1::ThirdPartyInvite
source · [−]pub struct ThirdPartyInvite {
pub medium: Medium,
pub address: String,
pub mxid: OwnedUserId,
pub room_id: OwnedRoomId,
pub sender: OwnedUserId,
pub signed: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, String, Global>, Global>,
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
A pending invite the third party identifier has received.
Fields
medium: Medium
The type of third party invite issues.
Currently only Medium::Email
is used.
address: String
The third party identifier that received the invite.
mxid: OwnedUserId
The now-bound user ID that received the invite.
room_id: OwnedRoomId
The room ID the invite is valid for.
sender: OwnedUserId
The user ID that sent the invite.
signed: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, String, Global>, Global>
Signature from the identity server using a long-term private key.
Implementations
sourceimpl ThirdPartyInvite
impl ThirdPartyInvite
sourcepub fn new(
address: String,
mxid: OwnedUserId,
room_id: OwnedRoomId,
sender: OwnedUserId,
signed: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, String, Global>, Global>
) -> ThirdPartyInvite
pub fn new(
address: String,
mxid: OwnedUserId,
room_id: OwnedRoomId,
sender: OwnedUserId,
signed: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, String, Global>, Global>
) -> ThirdPartyInvite
Creates a new third party invite with the given parameters.
Trait Implementations
sourceimpl Clone for ThirdPartyInvite
impl Clone for ThirdPartyInvite
sourcefn clone(&self) -> ThirdPartyInvite
fn clone(&self) -> ThirdPartyInvite
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ThirdPartyInvite
impl Debug for ThirdPartyInvite
sourceimpl<'de> Deserialize<'de> for ThirdPartyInvite
impl<'de> Deserialize<'de> for ThirdPartyInvite
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ThirdPartyInvite, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ThirdPartyInvite, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ThirdPartyInvite
impl Serialize for ThirdPartyInvite
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for ThirdPartyInvite
impl Send for ThirdPartyInvite
impl Sync for ThirdPartyInvite
impl Unpin for ThirdPartyInvite
impl UnwindSafe for ThirdPartyInvite
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more