Trait sda_protocol::SdaAgentService [] [src]

pub trait SdaAgentService: SdaBaseService {
    fn create_agent(&self, caller: &Agent, agent: &Agent) -> SdaResult<()>;
    fn get_agent(&self,
                 caller: &Agent,
                 agent: &AgentId)
                 -> SdaResult<Option<Agent>>; fn upsert_profile(&self, caller: &Agent, profile: &Profile) -> SdaResult<()>; fn get_profile(&self,
                   caller: &Agent,
                   owner: &AgentId)
                   -> SdaResult<Option<Profile>>; fn create_encryption_key(&self,
                             caller: &Agent,
                             key: &SignedEncryptionKey)
                             -> SdaResult<()>; fn get_encryption_key(&self,
                          caller: &Agent,
                          key: &EncryptionKeyId)
                          -> SdaResult<Option<SignedEncryptionKey>>; }

Methods used mainly for discovering and maintaining agents and their identities.

Required Methods

Create an agent.

Retrieve the agent description.

Register the given public profile; updates any existing profile.

Retrieve the associated public profile.

Register new encryption key for agent.

Retrieve agent encryption key.

Implementors