DeserializedClientId

public struct DeserializedClientId
extension DeserializedClientId: Sendable

This directly represents a ClientId of the <userid>:<device-id>@<domain> format. Instantiate via [ClientId::deserialize].

Its Display reproduces the bytes of the [ClientId] it came from, so the device id is rendered as unpadded hex. Note that this differs from [DeviceId::to_hex_string], which is fixed-width: a client id is not a hex-encoded binary value, and only the unpadded form matches what an E2EI certificate carries.

  • The client id this was deserialized from

    Declaration

    Swift

    public var clientId: ClientId
  • The user id component

    Declaration

    Swift

    public var userId: Uuid
  • The device id component

    Declaration

    Swift

    public var deviceId: DeviceId
  • The domain

    Declaration

    Swift

    public var domain: String
  • Undocumented

    Declaration

    Swift

    public init(
        /**
         * The client id this was deserialized from
         */clientId: ClientId, 
        /**
         * The user id component
         */userId: Uuid, 
        /**
         * The device id component
         */deviceId: DeviceId, 
        /**
         * The domain
         */domain: String)