Skip to content

session

Structs

  • SessionId - Unique identifier for a session.

Enums


firma_core::session::InvalidSessionIdError

Section titled “firma_core::session::InvalidSessionIdError”

Enum

Error returned when a [SessionId] string fails validation.

Variants:

  • Empty
  • InvalidFormat

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

Struct

Unique identifier for a session.

Accepts only [a-zA-Z0-9_-]{1,128}. Validated at construction so any code holding a typed value is guaranteed safe for Cedar entity UID use.

Tuple Struct: ()

Traits: Eq

Trait Implementations:

  • Serialize
    • fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>
  • Hash
    • fn hash<__H>(self: &Self, state: & mut __H)
  • Display
    • fn fmt(self: &Self, f: & mut std::fmt::Formatter) -> std::fmt::Result
  • Deserialize
    • fn deserialize<__D>(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> SessionId
  • TryFrom
    • fn try_from(s: String) -> Result<Self, <Self as >::Error>
  • PartialEq
    • fn eq(self: &Self, other: &SessionId) -> bool
  • FromStr
    • fn from_str(s: &str) -> Result<Self, <Self as >::Err>
  • AsRef
    • fn as_ref(self: &Self) -> &str