pub struct SqliteAgentReputationRepository { /* private fields */ }Available on crate feature
sqlite only.Expand description
SQLite implementation of AgentReputationRepository
Implementations§
Source§impl SqliteAgentReputationRepository
impl SqliteAgentReputationRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl AgentReputationRepository for SqliteAgentReputationRepository
impl AgentReputationRepository for SqliteAgentReputationRepository
Source§fn give_feedback(&self, input: CreateAgentFeedback) -> Result<AgentFeedback>
fn give_feedback(&self, input: CreateAgentFeedback) -> Result<AgentFeedback>
Submit feedback for an agent
Source§fn revoke_feedback(
&self,
agent_registry: &str,
agent_id: &str,
client_address: &str,
feedback_index: u64,
) -> Result<AgentFeedback>
fn revoke_feedback( &self, agent_registry: &str, agent_id: &str, client_address: &str, feedback_index: u64, ) -> Result<AgentFeedback>
Revoke previously submitted feedback
Source§fn read_feedback(
&self,
agent_registry: &str,
agent_id: &str,
client_address: &str,
feedback_index: u64,
) -> Result<Option<AgentFeedback>>
fn read_feedback( &self, agent_registry: &str, agent_id: &str, client_address: &str, feedback_index: u64, ) -> Result<Option<AgentFeedback>>
Read a specific feedback entry
Source§fn read_all_feedback(
&self,
filter: AgentFeedbackFilter,
) -> Result<Vec<AgentFeedback>>
fn read_all_feedback( &self, filter: AgentFeedbackFilter, ) -> Result<Vec<AgentFeedback>>
Read feedback entries with filters
Source§fn get_summary(
&self,
agent_registry: &str,
agent_id: &str,
client_addresses: Vec<String>,
tag1: Option<String>,
tag2: Option<String>,
) -> Result<FeedbackSummary>
fn get_summary( &self, agent_registry: &str, agent_id: &str, client_addresses: Vec<String>, tag1: Option<String>, tag2: Option<String>, ) -> Result<FeedbackSummary>
Get feedback summary for an agent (filtered by client addresses + tags)
Source§fn append_response(
&self,
input: CreateAgentFeedbackResponse,
) -> Result<AgentFeedbackResponse>
fn append_response( &self, input: CreateAgentFeedbackResponse, ) -> Result<AgentFeedbackResponse>
Append a response to a feedback entry
Source§fn get_response_count(
&self,
agent_registry: &str,
agent_id: &str,
client_address: &str,
feedback_index: u64,
responders: Option<Vec<String>>,
) -> Result<u64>
fn get_response_count( &self, agent_registry: &str, agent_id: &str, client_address: &str, feedback_index: u64, responders: Option<Vec<String>>, ) -> Result<u64>
Count responses for a feedback entry
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteAgentReputationRepository
impl !UnwindSafe for SqliteAgentReputationRepository
impl Freeze for SqliteAgentReputationRepository
impl Send for SqliteAgentReputationRepository
impl Sync for SqliteAgentReputationRepository
impl Unpin for SqliteAgentReputationRepository
impl UnsafeUnpin for SqliteAgentReputationRepository
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