user_id
user_id
#
The participant-identity JSON scalar, and its Participant alias.
UserID
#
Bases: JSONScalar, Keyable
A participant identity; two are equal when their identifier is.
The display name can change, so it never enters equality. As a Map key,
a participant encodes to its identifier (the folder name), and a decoded
key carries no display name ("").
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
The display name. |
identifier |
str
|
The stable unique identifier. |
Source code in capturegraph-lib/capturegraph/types/scalars/identity/user_id.py
__eq__(other)
#
Whether other is the same participant, whatever either is called.
Source code in capturegraph-lib/capturegraph/types/scalars/identity/user_id.py
__hash__()
#
key_decode(name)
classmethod
#
Decode a Map folder name back into a participant with no display name.
key_encode(key)
classmethod
#
Encode a Map key as the participant's stable identifier.