agent_handle
Module: agent_handle
Section titled “Module: agent_handle”Contents
Section titled “Contents”Structs
AgentHandle- The Workspace-relative address of one Authority-registered agent.AgentHandleParseError- Error returned when a string is not a canonical [AgentHandle].
firma_identifiers::agent_handle::AgentHandle
Section titled “firma_identifiers::agent_handle::AgentHandle”Struct
The Workspace-relative address of one Authority-registered agent.
A handle is 1 to [AgentHandle::MAX_LEN] bytes of lowercase ASCII letters,
digits, and hyphens, neither starting nor ending with a hyphen and never
holding two in a row, so it is safe as a URL path segment, a DNS label, and
a command argument.
Tuple Struct: ()
Methods:
fn new(value: String) -> Result<Self, AgentHandleParseError>- Validates a canonical handle.fn as_str(self: &Self) -> &str- Returns the canonical handle.
Traits: Eq
Trait Implementations:
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
- Hash
fn hash<__H>(self: &Self, state: & mut __H)
- PartialEq
fn eq(self: &Self, other: &Self) -> bool
- Clone
fn clone(self: &Self) -> Self
- Display
fn fmt(self: &Self, formatter: & mut fmt::Formatter) -> fmt::Result
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- FromStr
fn from_str(value: &str) -> Result<Self, <Self as >::Err>
- TryFrom
fn try_from(value: String) -> Result<Self, <Self as >::Error>
- AsRef
fn as_ref(self: &Self) -> &str
- Deserialize
fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error>
firma_identifiers::agent_handle::AgentHandleParseError
Section titled “firma_identifiers::agent_handle::AgentHandleParseError”Struct
Error returned when a string is not a canonical [AgentHandle].
Unit Struct
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