pub struct Member<'a> {
pub user_id: &'a str,
pub user_info: Option<HashMap<&'a str, &'a str>>,
}Expand description
When authenticating presence-channels, this represents a particular member of the channel. This object becomes associated with that user’s subscription.
Fields§
§user_id: &'a strSupply an id of the member
user_info: Option<HashMap<&'a str, &'a str>>Supply any optional information to be associated with the member
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Member<'a>
impl<'a> RefUnwindSafe for Member<'a>
impl<'a> Send for Member<'a>
impl<'a> Sync for Member<'a>
impl<'a> Unpin for Member<'a>
impl<'a> UnsafeUnpin for Member<'a>
impl<'a> UnwindSafe for Member<'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