Skip to content

token_id

Structs

  • TokenId - A Firma-generated identifier for one capability token.
  • TokenIdParseError - Error returned when text is not a valid TokenId.

Struct

A Firma-generated identifier for one capability token.

Its canonical representation is a ctok TypeID backed by an RFC 9562 UUID v7.

Tuple Struct: ()

Methods:

  • fn generate() -> Self - Generate a new ctok identifier.

Traits: Eq, Copy

Trait Implementations:

  • PartialEq
    • fn eq(self: &Self, other: &TokenId) -> bool
  • Clone
    • fn clone(self: &Self) -> TokenId
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Deserialize
    • fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>
  • Serialize
    • fn serialize<S>(self: &Self, serializer: S) -> Result<<S as >::Ok, <S as >::Error>
  • Display
    • fn fmt(self: &Self, formatter: & mut std::fmt::Formatter) -> std::fmt::Result
  • FromStr
    • fn from_str(value: &str) -> Result<Self, <Self as >::Err>
  • Hash
    • fn hash<__H>(self: &Self, state: & mut __H)
  • Ord
    • fn cmp(self: &Self, other: &TokenId) -> $crate::cmp::Ordering
  • PartialOrd
    • fn partial_cmp(self: &Self, other: &TokenId) -> $crate::option::Option<$crate::cmp::Ordering>

firma_identifiers::token_id::TokenIdParseError

Section titled “firma_identifiers::token_id::TokenIdParseError”

Struct

Error returned when text is not a valid TokenId.

Tuple Struct: ()

Trait Implementations:

  • Display
    • fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
  • Error
    • fn source(self: &Self) -> ::core::option::Option<&dyn ::thiserror::__private18::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result