pub struct ResolvedImageProvider {
pub provider_name: String,
pub model_id: String,
pub base_url: String,
pub api_key: String,
pub protocol: ImageProtocol,
pub mode: ImageCallMode,
pub poll_interval_secs: u64,
pub poll_timeout_secs: u64,
}Expand description
A fully resolved image generation provider, ready for client construction.
Resolved from default_image_model (in “provider/model” format) together
with the matching ImageProviderConfig.
Fields§
§provider_name: StringProvider key in config (e.g. “wanxiang”).
model_id: StringModel ID parsed from default_image_model (e.g. “wan2.7-image-pro”).
base_url: StringAPI base URL.
api_key: StringAPI key (env vars already resolved).
protocol: ImageProtocolProtocol used by this provider.
mode: ImageCallModeCall mode (only effective for DashScope).
poll_interval_secs: u64Polling interval in seconds for async mode.
poll_timeout_secs: u64Total polling timeout in seconds for async mode.
Trait Implementations§
Source§impl Clone for ResolvedImageProvider
impl Clone for ResolvedImageProvider
Source§fn clone(&self) -> ResolvedImageProvider
fn clone(&self) -> ResolvedImageProvider
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 ResolvedImageProvider
impl RefUnwindSafe for ResolvedImageProvider
impl Send for ResolvedImageProvider
impl Sync for ResolvedImageProvider
impl Unpin for ResolvedImageProvider
impl UnsafeUnpin for ResolvedImageProvider
impl UnwindSafe for ResolvedImageProvider
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