pub struct RoomIdentity<'a> {
pub user_id: i64,
pub auth_key: &'a str,
}Expand description
A logged-in account’s identity, attached additively to room actions
(user_id + auth_key body fields; None = guest). The server
verifies the pair and stamps the account on the room/record; guests
keep working unchanged and may not use a registered nickname.
Fields§
§user_id: i64§auth_key: &'a strTrait Implementations§
Source§impl<'a> Clone for RoomIdentity<'a>
impl<'a> Clone for RoomIdentity<'a>
Source§fn clone(&self) -> RoomIdentity<'a>
fn clone(&self) -> RoomIdentity<'a>
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<'a> Debug for RoomIdentity<'a>
impl<'a> Debug for RoomIdentity<'a>
Source§impl<'a> PartialEq for RoomIdentity<'a>
impl<'a> PartialEq for RoomIdentity<'a>
Source§fn eq(&self, other: &RoomIdentity<'a>) -> bool
fn eq(&self, other: &RoomIdentity<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for RoomIdentity<'a>
impl<'a> Eq for RoomIdentity<'a>
impl<'a> StructuralPartialEq for RoomIdentity<'a>
Auto Trait Implementations§
impl<'a> Freeze for RoomIdentity<'a>
impl<'a> RefUnwindSafe for RoomIdentity<'a>
impl<'a> Send for RoomIdentity<'a>
impl<'a> Sync for RoomIdentity<'a>
impl<'a> Unpin for RoomIdentity<'a>
impl<'a> UnsafeUnpin for RoomIdentity<'a>
impl<'a> UnwindSafe for RoomIdentity<'a>
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