pub struct HttpIdempotencyRecord {
pub tenant: String,
pub idempotency_key: String,
pub request_fingerprint: String,
pub response_status: u16,
pub content_type: Option<String>,
pub response_body: Vec<u8>,
pub created_at: DateTime<Utc>,
}Expand description
A durable idempotency entry: request fingerprint plus the stored response.
Fields§
§tenant: StringTenant namespace (empty string for single-tenant deployments).
idempotency_key: StringClient-chosen idempotency key.
request_fingerprint: StringFingerprint of the originating request (hex SHA-256 of method + path + body).
response_status: u16HTTP status code of the stored response.
content_type: Option<String>Content-Type of the stored response, if any.
response_body: Vec<u8>Raw response body bytes.
created_at: DateTime<Utc>When the entry was first stored (drives TTL expiry).
Trait Implementations§
Source§impl Clone for HttpIdempotencyRecord
impl Clone for HttpIdempotencyRecord
Source§fn clone(&self) -> HttpIdempotencyRecord
fn clone(&self) -> HttpIdempotencyRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpIdempotencyRecord
impl Debug for HttpIdempotencyRecord
impl Eq for HttpIdempotencyRecord
Source§impl PartialEq for HttpIdempotencyRecord
impl PartialEq for HttpIdempotencyRecord
impl StructuralPartialEq for HttpIdempotencyRecord
Auto Trait Implementations§
impl Freeze for HttpIdempotencyRecord
impl RefUnwindSafe for HttpIdempotencyRecord
impl Send for HttpIdempotencyRecord
impl Sync for HttpIdempotencyRecord
impl Unpin for HttpIdempotencyRecord
impl UnsafeUnpin for HttpIdempotencyRecord
impl UnwindSafe for HttpIdempotencyRecord
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