pub struct SqliteAgentIdentityRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite implementation of AgentIdentityRepository
Implementations§
Source§impl SqliteAgentIdentityRepository
impl SqliteAgentIdentityRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl AgentIdentityRepository for SqliteAgentIdentityRepository
impl AgentIdentityRepository for SqliteAgentIdentityRepository
Source§fn register(&self, input: CreateAgentIdentity) -> Result<AgentIdentity>
fn register(&self, input: CreateAgentIdentity) -> Result<AgentIdentity>
Register a new agent identity
Source§fn get(
&self,
agent_registry: &str,
agent_id: &str,
) -> Result<Option<AgentIdentity>>
fn get( &self, agent_registry: &str, agent_id: &str, ) -> Result<Option<AgentIdentity>>
Get identity by agent registry and agent ID
Source§fn get_by_wallet(&self, agent_wallet: &str) -> Result<Option<AgentIdentity>>
fn get_by_wallet(&self, agent_wallet: &str) -> Result<Option<AgentIdentity>>
Get identity by agent wallet address
Source§fn update(
&self,
agent_registry: &str,
agent_id: &str,
input: UpdateAgentIdentity,
) -> Result<AgentIdentity>
fn update( &self, agent_registry: &str, agent_id: &str, input: UpdateAgentIdentity, ) -> Result<AgentIdentity>
Update agent identity
Source§fn set_agent_wallet(
&self,
agent_registry: &str,
agent_id: &str,
agent_wallet: &str,
proof_type: Option<AgentWalletProofType>,
proof: Option<&str>,
proof_chain_id: Option<u64>,
proof_deadline: Option<DateTime<Utc>>,
) -> Result<AgentIdentity>
fn set_agent_wallet( &self, agent_registry: &str, agent_id: &str, agent_wallet: &str, proof_type: Option<AgentWalletProofType>, proof: Option<&str>, proof_chain_id: Option<u64>, proof_deadline: Option<DateTime<Utc>>, ) -> Result<AgentIdentity>
Set or update agent wallet with proof metadata
Source§fn clear_agent_wallet(
&self,
agent_registry: &str,
agent_id: &str,
) -> Result<AgentIdentity>
fn clear_agent_wallet( &self, agent_registry: &str, agent_id: &str, ) -> Result<AgentIdentity>
Clear agent wallet
Source§fn list(&self, filter: AgentIdentityFilter) -> Result<Vec<AgentIdentity>>
fn list(&self, filter: AgentIdentityFilter) -> Result<Vec<AgentIdentity>>
List identities with optional filtering
Source§fn set_metadata(
&self,
agent_registry: &str,
agent_id: &str,
entry: AgentMetadataEntry,
) -> Result<()>
fn set_metadata( &self, agent_registry: &str, agent_id: &str, entry: AgentMetadataEntry, ) -> Result<()>
Set identity metadata entry
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteAgentIdentityRepository
impl !UnwindSafe for SqliteAgentIdentityRepository
impl Freeze for SqliteAgentIdentityRepository
impl Send for SqliteAgentIdentityRepository
impl Sync for SqliteAgentIdentityRepository
impl Unpin for SqliteAgentIdentityRepository
impl UnsafeUnpin for SqliteAgentIdentityRepository
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