pub struct ClientIdDef {
pub user_id: Uuid,
pub device_id: u64,
pub domain: String,
}Fields§
§user_id: Uuidbase64url encoded UUIDv4 unique user identifier
device_id: u64the device id assigned by the backend in hex
domain: Stringthe backend domain of the client
Implementations§
Source§impl ClientIdDef
impl ClientIdDef
Source§impl<'de> ClientIdDef
impl<'de> ClientIdDef
pub fn deserialize<__D>(__deserializer: __D) -> Result<ClientId, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ClientIdDef
impl RefUnwindSafe for ClientIdDef
impl Send for ClientIdDef
impl Sync for ClientIdDef
impl Unpin for ClientIdDef
impl UnsafeUnpin for ClientIdDef
impl UnwindSafe for ClientIdDef
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> 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