pub struct User {
pub uaid: Uuid,
pub connected_at: u64,
pub router_type: String,
pub router_data: Option<HashMap<String, Value>>,
pub node_id: Option<String>,
pub record_version: Option<u64>,
pub current_timestamp: Option<u64>,
pub version: Option<Uuid>,
/* private fields */
}
Expand description
A user data record.
Fields§
§uaid: Uuid
The UAID. This is generally a UUID4. It needs to be globally unique.
connected_at: u64
Time in milliseconds that the user last connected at
router_type: String
Router type of the user
router_data: Option<HashMap<String, Value>>
Router-specific data
node_id: Option<String>
Last node/port the client was or may be connected to
record_version: Option<u64>
Record version
current_timestamp: Option<u64>
the timestamp of the last notification sent to the user This field is exclusive to the Bigtable data scheme
version: Option<Uuid>
UUID4 version number for optimistic locking of updates on Bigtable
Implementations§
source§impl User
impl User
sourcepub fn builder() -> UserBuilder
pub fn builder() -> UserBuilder
Return a new UserBuilder (generated from [derive_builder::Builder])
pub fn channel_count(&self) -> usize
Trait Implementations§
source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)