Struct ruma_federation_api::membership::create_leave_event::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 event_type: StateEventType,
pub state_key: String,
pub content: Raw<RoomMemberEventContent>,
pub depth: UInt,
}
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
Expand description
Initial set of fields of Request
.
This struct will not be updated even if additional fields are added to Request
in a
new (non-breaking) release of the Matrix specification.
Fields§
§room_id: OwnedRoomId
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The room ID that is about to be left.
event_id: OwnedEventId
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The event ID for the leave event.
sender: OwnedUserId
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The user ID of the leaving member.
origin: OwnedServerName
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The name of the leaving homeserver.
origin_server_ts: MilliSecondsSinceUnixEpoch
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
A timestamp added by the leaving homeserver.
event_type: StateEventType
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The value m.room.member
.
state_key: String
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The user ID of the leaving member.
content: Raw<RoomMemberEventContent>
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
The content of the event.
depth: UInt
👎Deprecated: Since Matrix Server-Server API r0.1.4. Use the v2 endpoint instead.
This field must be present but is ignored; it may be 0.
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) -> Self
fn from(init: RequestInit) -> Self
Creates a new Request
from RequestInit
.
Auto Trait Implementations§
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