pub struct AgentIdentity {
pub did: String,
pub public_key: Vec<u8>,
pub metadata: HashMap<String, String>,
}Expand description
Agent Identity representation
Fields§
§did: String§public_key: Vec<u8>§metadata: HashMap<String, String>Implementations§
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 · 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
Source§impl<'de> Deserialize<'de> for AgentIdentity
impl<'de> Deserialize<'de> for AgentIdentity
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
Source§impl PartialEq for AgentIdentity
impl PartialEq for AgentIdentity
Source§impl Serialize for AgentIdentity
impl Serialize for AgentIdentity
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 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