Struct ruma_federation_api::membership::create_leave_event::v1::Request
source · pub struct Request {
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
Request type for the create_leave_event
endpoint.
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 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
.
source§impl IncomingRequest for Request
Available on crate feature server
only.
impl IncomingRequest for Request
Available on crate feature
server
only.§type EndpointError = MatrixError
type EndpointError = MatrixError
A type capturing the error conditions that can be returned in the response.
§type OutgoingResponse = Response
type OutgoingResponse = Response
Response type to return when the request is successful.
source§impl OutgoingRequest for Request
Available on crate feature client
only.
impl OutgoingRequest for Request
Available on crate feature
client
only.§type EndpointError = MatrixError
type EndpointError = MatrixError
A type capturing the expected error conditions the server can return.
§type IncomingResponse = Response
type IncomingResponse = Response
Response type returned when the request is successful.
source§fn try_into_http_request<T: Default + BufMut>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>
fn try_into_http_request<T: Default + BufMut>( self, base_url: &str, access_token: SendAccessToken<'_>, considering_versions: &[MatrixVersion] ) -> Result<Request<T>, IntoHttpError>
Tries to convert this request into an
http::Request
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> OutgoingRequestAppserviceExt for Twhere
T: OutgoingRequest,
impl<T> OutgoingRequestAppserviceExt for Twhere
T: OutgoingRequest,
source§fn try_into_http_request_with_user_id<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
user_id: &UserId,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>where
T: Default + BufMut,
fn try_into_http_request_with_user_id<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
user_id: &UserId,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>where
T: Default + BufMut,
Tries to convert this request into an
http::Request
and appends a virtual user_id
to
assert Appservice identity.