Skip to main content

IdempotencyStore

Trait IdempotencyStore 

Source
pub trait IdempotencyStore: Send + Sync {
    // Required methods
    fn check(&self, method: &str, key: &str, params: &Value) -> IdempotencyCheck;
    fn store(
        &self,
        method: &str,
        key: &str,
        params: &Value,
        response: &StoredResponse,
    );
}

Required Methods§

Source

fn check(&self, method: &str, key: &str, params: &Value) -> IdempotencyCheck

Source

fn store( &self, method: &str, key: &str, params: &Value, response: &StoredResponse, )

Implementors§