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