agent_id
Module: agent_id
Section titled “Module: agent_id”Contents
Section titled “Contents”Structs
AgentId- A Firma-generated, time-ordered identifier for one registered agent.AgentIdParseError- Error returned when text is not a valid agent identifier.
firma_core::agent_id::AgentId
Section titled “firma_core::agent_id::AgentId”Struct
A Firma-generated, time-ordered identifier for one registered agent.
Its canonical representation is an agt TypeID backed by an RFC 9562 UUID
v7. The inner value is private so IDs can only enter through generation or
validated parsing.
Tuple Struct: ()
Methods:
fn generate() -> Self- Generate a new time-orderedagtagent identifier.
Traits: Eq, Copy
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &AgentId) -> bool
- Deserialize
fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>
- Hash
fn hash<__H>(self: &Self, state: & mut __H)
- PartialOrd
fn partial_cmp(self: &Self, other: &AgentId) -> $crate::option::Option<$crate::cmp::Ordering>
- Clone
fn clone(self: &Self) -> AgentId
- Display
fn fmt(self: &Self, formatter: & mut fmt::Formatter) -> fmt::Result
- Ord
fn cmp(self: &Self, other: &AgentId) -> $crate::cmp::Ordering
- Serialize
fn serialize<S>(self: &Self, serializer: S) -> Result<<S as >::Ok, <S as >::Error>
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- FromStr
fn from_str(value: &str) -> Result<Self, <Self as >::Err>
firma_core::agent_id::AgentIdParseError
Section titled “firma_core::agent_id::AgentIdParseError”Struct
Error returned when text is not a valid agent identifier.
Tuple Struct: ()
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- 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>