pub struct IdempotencyRequest {
pub key: String,
pub owner: String,
pub fingerprint: u64,
pub ttl: Option<Duration>,
}Expand description
Client-supplied idempotency parameters for one commit (spec §10.2, S1B-005).
Fields§
§key: StringThe idempotency key, unique per owner.
owner: StringOwning principal; keys from different owners never alias.
fingerprint: u64Fingerprint of the request payload (caller-computed hash). A repeated key with the same fingerprint replays the original receipt; a different fingerprint conflicts.
ttl: Option<Duration>How long the record is retained after the commit completes. None
keeps the record until the ledger’s bounded-size eviction.
Trait Implementations§
Source§impl Clone for IdempotencyRequest
impl Clone for IdempotencyRequest
Source§fn clone(&self) -> IdempotencyRequest
fn clone(&self) -> IdempotencyRequest
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 IdempotencyRequest
impl RefUnwindSafe for IdempotencyRequest
impl Send for IdempotencyRequest
impl Sync for IdempotencyRequest
impl Unpin for IdempotencyRequest
impl UnsafeUnpin for IdempotencyRequest
impl UnwindSafe for IdempotencyRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more