pub struct AgentSetupResult {
pub agent_did: IdentityDID,
pub parent_did: IdentityDID,
pub capabilities: Vec<Capability>,
}Expand description
Outcome of a successful agent identity setup.
Usage:
ⓘ
let result: AgentSetupResult = sdk.setup_agent(config).await?;
println!("Agent {} delegated by {}", result.agent_did, result.parent_did);Fields§
§agent_did: IdentityDIDThe DID of the newly created agent identity.
parent_did: IdentityDIDThe DID of the parent identity that delegated authority.
capabilities: Vec<Capability>The capabilities granted to the agent.
Trait Implementations§
Source§impl Clone for AgentSetupResult
impl Clone for AgentSetupResult
Source§fn clone(&self) -> AgentSetupResult
fn clone(&self) -> AgentSetupResult
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 moreAuto Trait Implementations§
impl Freeze for AgentSetupResult
impl RefUnwindSafe for AgentSetupResult
impl Send for AgentSetupResult
impl Sync for AgentSetupResult
impl Unpin for AgentSetupResult
impl UnsafeUnpin for AgentSetupResult
impl UnwindSafe for AgentSetupResult
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