pub struct IdempotencyRecord {
pub content_hash: ContentHash,
pub response: PublishResponse,
pub expires_at: DateTime<Utc>,
}Expand description
Cached publish response keyed by (agent_id, idempotency_key)
(RFC-ACDP-0003 §6).
Fields§
§content_hash: ContentHashThe original request’s content_hash. A retry with the same key
but a different hash MUST be rejected as duplicate_publish.
response: PublishResponseThe response the registry returned on the first acceptance.
expires_at: DateTime<Utc>Eviction time (TTL window from caps.limits.idempotency_key_ttl_seconds).
Trait Implementations§
Source§impl Clone for IdempotencyRecord
impl Clone for IdempotencyRecord
Source§fn clone(&self) -> IdempotencyRecord
fn clone(&self) -> IdempotencyRecord
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 moreAuto Trait Implementations§
impl Freeze for IdempotencyRecord
impl RefUnwindSafe for IdempotencyRecord
impl Send for IdempotencyRecord
impl Sync for IdempotencyRecord
impl Unpin for IdempotencyRecord
impl UnsafeUnpin for IdempotencyRecord
impl UnwindSafe for IdempotencyRecord
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