agent
Module: agent
Section titled “Module: agent”Contents
Section titled “Contents”Structs
AgentId- Unique identifier for an agent.
Enums
InvalidAgentIdError- Error returned when an [AgentId] string fails validation.
firma_core::agent::AgentId
Section titled “firma_core::agent::AgentId”Struct
Unique identifier for an agent.
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:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- FromStr
fn from_str(s: &str) -> Result<Self, <Self as >::Err>
- PartialEq
fn eq(self: &Self, other: &AgentId) -> bool
- TryFrom
fn try_from(s: String) -> Result<Self, <Self as >::Error>
- Clone
fn clone(self: &Self) -> AgentId
- 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>
- AsRef
fn as_ref(self: &Self) -> &str
- Hash
fn hash<__H>(self: &Self, state: & mut __H)
- Display
fn fmt(self: &Self, f: & mut std::fmt::Formatter) -> std::fmt::Result
firma_core::agent::InvalidAgentIdError
Section titled “firma_core::agent::InvalidAgentIdError”Enum
Error returned when an [AgentId] 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