#[non_exhaustive]pub struct CallOptions {
pub timeout: Option<Duration>,
pub retry: Option<RetryPolicy>,
pub idempotency_key: Option<String>,
pub request_id: Option<String>,
}Expand description
Overrides for one logical call. Unset fields use the client’s defaults.
Retry overrides leave the client’s separate 429 pacing budget in effect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timeout: Option<Duration>Timeout per complete HTTP attempt, including the response body.
retry: Option<RetryPolicy>§idempotency_key: Option<String>Applies to declared idempotent writes. Reuse only with the same operation and payload.
request_id: Option<String>1–64 letters, digits, dots, underscores or hyphens.
Implementations§
Source§impl CallOptions
impl CallOptions
pub fn timeout(self, timeout: Duration) -> Self
pub fn retry(self, retry: RetryPolicy) -> Self
pub fn idempotency_key(self, key: impl Into<String>) -> Self
pub fn request_id(self, id: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for CallOptions
impl Clone for CallOptions
Source§impl Debug for CallOptions
impl Debug for CallOptions
Auto Trait Implementations§
impl Forget for CallOptions
impl Freeze for CallOptions
impl Move for CallOptions
impl RefUnwindSafe for CallOptions
impl Send for CallOptions
impl Sync for CallOptions
impl Unpin for CallOptions
impl UnsafeUnpin for CallOptions
impl UnwindSafe for CallOptions
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