Struct ruma_client_api::r0::directory::get_public_rooms::IncomingRequest [−][src]
pub struct IncomingRequest { pub limit: Option<UInt>, pub since: Option<String>, pub server: Option<Box<ServerName>>, }
Expand description
‘Incoming’ variant of Request.
Fields
limit: Option<UInt>
Limit for the number of results to return.
since: Option<String>
Pagination token from a previous request.
server: Option<Box<ServerName>>
The server to fetch the public room lists from.
None
means the server this request is sent to.
Trait Implementations
type EndpointError = Error
type EndpointError = Error
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.
fn try_from_http_request<T: AsRef<[u8]>>(
request: Request<T>
) -> Result<Self, FromHttpRequestError>
fn try_from_http_request<T: AsRef<[u8]>>(
request: Request<T>
) -> Result<Self, FromHttpRequestError>
Tries to turn the given http::Request
into this request type.
Auto Trait Implementations
impl RefUnwindSafe for IncomingRequest
impl Send for IncomingRequest
impl Sync for IncomingRequest
impl Unpin for IncomingRequest
impl UnwindSafe for IncomingRequest