pub struct MwsClientInfo {
pub client_id: Option<String>,
pub user_id: Option<String>,
}Fields§
§client_id: Option<String>§user_id: Option<String>Implementations§
Source§impl MwsClientInfo
impl MwsClientInfo
pub fn new(client_id: String, user_id: String) -> Self
pub fn from_ws_id(ws_id: String) -> Self
pub fn from_client_id(client_id: String) -> Self
pub fn to_client_id(&self) -> String
Trait Implementations§
Source§impl Clone for MwsClientInfo
impl Clone for MwsClientInfo
Source§fn clone(&self) -> MwsClientInfo
fn clone(&self) -> MwsClientInfo
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 MwsClientInfo
impl Debug for MwsClientInfo
Source§impl Default for MwsClientInfo
impl Default for MwsClientInfo
Source§fn default() -> MwsClientInfo
fn default() -> MwsClientInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MwsClientInfo
impl<'de> Deserialize<'de> for MwsClientInfo
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 MwsClientInfo
Source§impl PartialEq for MwsClientInfo
impl PartialEq for MwsClientInfo
Source§impl Serialize for MwsClientInfo
impl Serialize for MwsClientInfo
impl StructuralPartialEq for MwsClientInfo
Auto Trait Implementations§
impl Freeze for MwsClientInfo
impl RefUnwindSafe for MwsClientInfo
impl Send for MwsClientInfo
impl Sync for MwsClientInfo
impl Unpin for MwsClientInfo
impl UnsafeUnpin for MwsClientInfo
impl UnwindSafe for MwsClientInfo
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