pub struct RequestOptions {
pub timeout: Option<Duration>,
pub correlation_id: Option<String>,
pub idempotency_key: Option<String>,
}Expand description
Options for a single request.
Fields§
§timeout: Option<Duration>Request timeout (defaults to 30 seconds).
correlation_id: Option<String>Value for x-correlation-id (generated UUID when omitted).
idempotency_key: Option<String>Value for idempotency-key when the operation supports it.
Trait Implementations§
Source§impl Clone for RequestOptions
impl Clone for RequestOptions
Source§impl Debug for RequestOptions
impl Debug for RequestOptions
Auto Trait Implementations§
impl Freeze 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