pub struct RequestOptions {
pub idempotency_key: Option<String>,
}Expand description
Per-call options for methods that send an Idempotency-Key.
Fields§
§idempotency_key: Option<String>Idempotency key to send verbatim. When unset the SDK generates a UUIDv4 once per call and reuses it on every retry.
Implementations§
Source§impl RequestOptions
impl RequestOptions
Sourcepub fn idempotency_key(key: impl Into<String>) -> Self
pub fn idempotency_key(key: impl Into<String>) -> Self
Options carrying an explicit idempotency key.
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Source§impl Debug for RequestOptions
impl Debug for RequestOptions
Source§impl Default for RequestOptions
impl Default for RequestOptions
impl Eq for RequestOptions
Source§impl PartialEq for RequestOptions
impl PartialEq for RequestOptions
impl StructuralPartialEq for RequestOptions
Auto Trait Implementations§
impl Forget for RequestOptions
impl Freeze for RequestOptions
impl Move for RequestOptions
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptions
impl UnwindSafe for RequestOptions
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