pub struct AgentIdentity {
pub agent_id: String,
pub signing_private_key: String,
pub signing_public_key: String,
pub encryption_private_key: String,
pub encryption_public_key: String,
pub signing_kid: String,
pub encryption_kid: String,
}Fields§
§agent_id: String§signing_private_key: String§signing_public_key: String§encryption_private_key: String§encryption_public_key: String§signing_kid: String§encryption_kid: StringImplementations§
Source§impl AgentIdentity
impl AgentIdentity
pub fn create(agent_id: &str) -> AcpResult<Self>
pub fn build_identity_document( &self, direct_endpoint: Option<&str>, relay_hints: &[String], trust_profile: &str, capabilities: Option<&Map<String, Value>>, valid_days: i64, amqp_service: Option<&Map<String, Value>>, mqtt_service: Option<&Map<String, Value>>, http_security_profile: Option<&str>, relay_security_profile: Option<&str>, ) -> AcpResult<Map<String, Value>>
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 Eq 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 UnsafeUnpin for AgentIdentity
impl UnwindSafe for AgentIdentity
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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