Struct ruma_client::api::r0::typing::create_typing_event::Request
source · pub struct Request {
pub room_id: RoomId,
pub timeout: Option<u64>,
pub typing: bool,
pub user_id: UserId,
}
Expand description
Data for a request to this API endpoint.
Fields
room_id: RoomId
The room in which the user is typing.
timeout: Option<u64>
The length of time in milliseconds to mark this user as typing.
typing: bool
Whether the user is typing or not. If false
, the timeout
key can be omitted.
user_id: UserId
The user who has started to type.
Trait Implementations
sourceimpl FutureFrom<Request<Body>> for Request
impl FutureFrom<Request<Body>> for Request
type Future = Box<dyn Future<Error = <Request as FutureFrom<Request<Body>>>::Error, Item = Request> + Send + 'static, Global>
type Future = Box<dyn Future<Error = <Request as FutureFrom<Request<Body>>>::Error, Item = Request> + Send + 'static, Global>
The future for the conversion.
sourcefn future_from(
request: Request<Body>
) -> <Request as FutureFrom<Request<Body>>>::Future
fn future_from(
request: Request<Body>
) -> <Request as FutureFrom<Request<Body>>>::Future
Consume the given value, beginning the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more