pub struct AgentIdentity { /* private fields */ }Expand description
A person, organization, application instance, or service responsible for an activity.
Implementations§
Source§impl AgentIdentity
impl AgentIdentity
Sourcepub fn new(
name: Option<String>,
identifier: Option<ExternalIdentifier>,
) -> Result<Self>
pub fn new( name: Option<String>, identifier: Option<ExternalIdentifier>, ) -> Result<Self>
Creates an agent described by a name, an external identifier, or both.
§Errors
Returns ErrorKind::InvalidArgument when neither identity is present
or the name is empty, oversized, or contains NUL.
Sourcepub const fn identifier(&self) -> Option<&ExternalIdentifier>
pub const fn identifier(&self) -> Option<&ExternalIdentifier>
Returns the optional external agent identity.
Trait Implementations§
Source§impl Clone for AgentIdentity
impl Clone for AgentIdentity
Source§fn clone(&self) -> AgentIdentity
fn clone(&self) -> AgentIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentIdentity
impl Debug for AgentIdentity
impl Eq for AgentIdentity
Source§impl PartialEq for AgentIdentity
impl PartialEq for AgentIdentity
Source§fn eq(&self, other: &AgentIdentity) -> bool
fn eq(&self, other: &AgentIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentIdentity
Auto Trait Implementations§
impl Freeze for AgentIdentity
impl RefUnwindSafe for AgentIdentity
impl Send for AgentIdentity
impl Sync for AgentIdentity
impl Unpin for AgentIdentity
impl UnsafeUnpin for AgentIdentity
impl UnwindSafe for AgentIdentity
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