Struct ruma::api::federation::membership::create_invite::v1::RequestInit
source · pub struct RequestInit {
pub room_id: OwnedRoomId,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin: OwnedServerName,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub state_key: OwnedUserId,
pub content: RoomMemberEventContent,
pub unsigned: UnsignedEventContent,
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
Initial set of fields of Request
.
Fields§
§room_id: OwnedRoomId
The room ID that the user is being invited to.
event_id: OwnedEventId
The event ID for the invite event, generated by the inviting server.
sender: OwnedUserId
The matrix ID of the user who sent the original m.room.third_party_invite
.
origin: OwnedServerName
The name of the inviting homeserver.
origin_server_ts: MilliSecondsSinceUnixEpoch
A timestamp added by the inviting homeserver.
state_key: OwnedUserId
The user ID of the invited member.
content: RoomMemberEventContent
The content of the event.
unsigned: UnsignedEventContent
Information included alongside the event that is not signed.
Trait Implementations§
source§impl Debug for RequestInit
impl Debug for RequestInit
source§impl From<RequestInit> for Request
impl From<RequestInit> for Request
source§fn from(init: RequestInit) -> Request
fn from(init: RequestInit) -> Request
Creates a new Request
from RequestInit
.
Auto Trait Implementations§
impl Freeze for RequestInit
impl RefUnwindSafe for RequestInit
impl Send for RequestInit
impl Sync for RequestInit
impl Unpin for RequestInit
impl UnwindSafe for RequestInit
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, 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,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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