pub struct ImagesOptions {
pub api_key: Option<String>,
pub headers: IndexMap<String, Option<String>>,
pub max_retries: Option<u32>,
pub max_retry_delay_ms: Option<u64>,
pub timeout_ms: Option<u64>,
pub cancel: CancellationToken,
pub hooks: RequestHooks,
}Expand description
Options of one image request.
Fields§
§api_key: Option<String>Credential for the provider.
headers: IndexMap<String, Option<String>>Extra headers. None removes one.
max_retries: Option<u32>Retries of retryable failures, or none when absent, as in the SDK call.
max_retry_delay_ms: Option<u64>Largest server-requested retry delay to honor.
timeout_ms: Option<u64>Per-attempt timeout.
cancel: CancellationTokenCancels the request.
hooks: RequestHooksSee the request body, which payload may replace, and the response.
Trait Implementations§
Source§impl Clone for ImagesOptions
impl Clone for ImagesOptions
Source§impl Debug for ImagesOptions
impl Debug for ImagesOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ImagesOptions
impl !UnwindSafe for ImagesOptions
impl Freeze for ImagesOptions
impl Send for ImagesOptions
impl Sync for ImagesOptions
impl Unpin for ImagesOptions
impl UnsafeUnpin for ImagesOptions
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