session_id
Module: session_id
Section titled “Module: session_id”Contents
Section titled “Contents”Structs
SessionId- An identifier used to correlate activity within a session.
Enums
InvalidSessionIdError- Error returned when a [SessionId] string fails validation.
firma_identifiers::session_id::InvalidSessionIdError
Section titled “firma_identifiers::session_id::InvalidSessionIdError”Enum
Error returned when a [SessionId] string fails validation.
Variants:
EmptyInvalidFormat
Traits: Error
Trait Implementations:
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
firma_identifiers::session_id::SessionId
Section titled “firma_identifiers::session_id::SessionId”Struct
An identifier used to correlate activity within a session.
Session IDs accept [a-zA-Z0-9_-]{1,128} so callers can supply an existing
runtime identifier while remaining safe for use as a Cedar entity UID.
Tuple Struct: ()
Methods:
fn generate() -> Self- Generate a newsesTypeIDbacked by an RFC 9562 UUID v7.
Traits: Eq
Trait Implementations:
- AsRef
fn as_ref(self: &Self) -> &str
- Deserialize
fn deserialize<__D>(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Hash
fn hash<__H>(self: &Self, state: & mut __H)
- Clone
fn clone(self: &Self) -> SessionId
- FromStr
fn from_str(value: &str) -> Result<Self, <Self as >::Err>
- Display
fn fmt(self: &Self, formatter: & mut fmt::Formatter) -> fmt::Result
- PartialEq
fn eq(self: &Self, other: &SessionId) -> bool
- TryFrom
fn try_from(value: String) -> Result<Self, <Self as >::Error>