pub struct IdempotencyEntry {
pub status: u16,
pub headers: Vec<(String, Vec<u8>)>,
pub body: Vec<u8>,
pub payload_sig: [u8; 20],
pub completed: bool,
}Expand description
Idempotency cache record. The body / headers are stored as opaque bytes so remote backends don’t need to understand HTTP serialization.
Fields§
§status: u16§headers: Vec<(String, Vec<u8>)>§body: Vec<u8>§payload_sig: [u8; 20]§completed: boolTrait Implementations§
Source§impl Clone for IdempotencyEntry
impl Clone for IdempotencyEntry
Source§fn clone(&self) -> IdempotencyEntry
fn clone(&self) -> IdempotencyEntry
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 IdempotencyEntry
impl RefUnwindSafe for IdempotencyEntry
impl Send for IdempotencyEntry
impl Sync for IdempotencyEntry
impl Unpin for IdempotencyEntry
impl UnsafeUnpin for IdempotencyEntry
impl UnwindSafe for IdempotencyEntry
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