pub struct ConnectAgent {
pub id: String,
pub name: Option<String>,
pub agent_type: Option<String>,
pub service_url: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
Agent structure specific to Connect messages. Unlike regular agents, Connect agents don’t require a “for” field because the principal is specified separately in the Connect message.
Fields§
§id: StringDID of the agent.
name: Option<String>Name of the agent (optional).
agent_type: Option<String>Type of the agent (optional).
service_url: Option<String>Service URL for the agent (optional).
metadata: HashMap<String, Value>Additional metadata.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectAgent
impl Clone for ConnectAgent
Source§fn clone(&self) -> ConnectAgent
fn clone(&self) -> ConnectAgent
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 ConnectAgent
impl Debug for ConnectAgent
Source§impl<'de> Deserialize<'de> for ConnectAgent
impl<'de> Deserialize<'de> for ConnectAgent
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 Serialize for ConnectAgent
impl Serialize for ConnectAgent
Source§impl TapParticipant for ConnectAgent
impl TapParticipant for ConnectAgent
Auto Trait Implementations§
impl Freeze for ConnectAgent
impl RefUnwindSafe for ConnectAgent
impl Send for ConnectAgent
impl Sync for ConnectAgent
impl Unpin for ConnectAgent
impl UnwindSafe for ConnectAgent
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