pub struct TokenRequestBody {
pub client_parameters: ClientParameters,
pub room_parameters: Option<RoomParameters>,
}Expand description
The request body for GET /rooms/{room_id}/token
Fields§
§client_parameters: ClientParametersInformation regarding the requesting client
room_parameters: Option<RoomParameters>The room that the token is requested for.
Once this was provided to the roomserver, further request do not need to include the room parameters
Trait Implementations§
Source§impl Clone for TokenRequestBody
impl Clone for TokenRequestBody
Source§fn clone(&self) -> TokenRequestBody
fn clone(&self) -> TokenRequestBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenRequestBody
impl Debug for TokenRequestBody
Source§impl<'de> Deserialize<'de> for TokenRequestBody
impl<'de> Deserialize<'de> for TokenRequestBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TokenRequestBody
Source§impl ExampleData for TokenRequestBody
impl ExampleData for TokenRequestBody
Source§fn example_data() -> Self
fn example_data() -> Self
Get an example instance of the current datatype.
Source§impl PartialEq for TokenRequestBody
impl PartialEq for TokenRequestBody
Source§impl Serialize for TokenRequestBody
impl Serialize for TokenRequestBody
impl StructuralPartialEq for TokenRequestBody
Auto Trait Implementations§
impl Freeze for TokenRequestBody
impl RefUnwindSafe for TokenRequestBody
impl Send for TokenRequestBody
impl Sync for TokenRequestBody
impl Unpin for TokenRequestBody
impl UnsafeUnpin for TokenRequestBody
impl UnwindSafe for TokenRequestBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more