pub enum AphPartyRole {
HumanPrincipal,
AgentSender,
NotaryService,
ChannelAdapter,
RecipientEndpoint,
}Expand description
One of the five APH protocol roles.
Variants§
HumanPrincipal
The natural person on whose behalf an outbound communication is sent.
AgentSender
The agent (LLM-backed software) drafting the message.
NotaryService
The notary service issuing the verifiable credential.
ChannelAdapter
The channel adapter (Slack/Email/Discord/…) transporting the message.
RecipientEndpoint
The far-end recipient endpoint verifying the credential.
Implementations§
Source§impl AphPartyRole
impl AphPartyRole
Sourcepub fn allowed_operations(&self) -> &'static [AphOperation]
pub fn allowed_operations(&self) -> &'static [AphOperation]
Returns the operations this role is allowed to perform.
Sourcepub fn can_perform(&self, op: AphOperation) -> bool
pub fn can_perform(&self, op: AphOperation) -> bool
Returns true if this role is permitted to perform op.
Sourcepub fn all() -> &'static [AphPartyRole]
pub fn all() -> &'static [AphPartyRole]
All role variants for iteration.
Trait Implementations§
Source§impl Clone for AphPartyRole
impl Clone for AphPartyRole
impl Copy for AphPartyRole
Source§impl Debug for AphPartyRole
impl Debug for AphPartyRole
Source§impl<'de> Deserialize<'de> for AphPartyRole
impl<'de> Deserialize<'de> for AphPartyRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AphPartyRole
Source§impl Hash for AphPartyRole
impl Hash for AphPartyRole
Source§impl PartialEq for AphPartyRole
impl PartialEq for AphPartyRole
Source§impl Serialize for AphPartyRole
impl Serialize for AphPartyRole
impl StructuralPartialEq for AphPartyRole
Auto Trait Implementations§
impl Freeze for AphPartyRole
impl RefUnwindSafe for AphPartyRole
impl Send for AphPartyRole
impl Sync for AphPartyRole
impl Unpin for AphPartyRole
impl UnsafeUnpin for AphPartyRole
impl UnwindSafe for AphPartyRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more