pub struct ImageRequest {
pub version: String,
pub prompt: String,
pub negative_prompt: Option<String>,
pub operation: ImageOperation,
pub parameters: GenerationParameters,
pub routing: RoutingOptions,
pub session: SessionOptions,
pub output: OutputOptions,
pub policies: RequestPolicies,
pub idempotency_key: Option<String>,
pub timeout_ms: Option<u64>,
pub user: Option<String>,
}Expand description
A complete provider-neutral image request.
Fields§
§version: StringContract version. Currently 1.
prompt: StringPositive prompt passed to image generation.
negative_prompt: Option<String>Optional negative prompt interpreted according to bridge policy.
operation: ImageOperationGeneration or edit inputs.
parameters: GenerationParametersImage-generation parameters.
routing: RoutingOptionsProvider and model routing controls.
session: SessionOptionsSession behavior for providers that support conversations.
output: OutputOptionsOutput delivery and artifact controls.
policies: RequestPoliciesFallback and compatibility policies.
idempotency_key: Option<String>Optional client idempotency key.
timeout_ms: Option<u64>Optional request deadline in milliseconds.
user: Option<String>Optional opaque end-user identifier forwarded only by configured providers.
Implementations§
Trait Implementations§
Source§impl Clone for ImageRequest
impl Clone for ImageRequest
Source§fn clone(&self) -> ImageRequest
fn clone(&self) -> ImageRequest
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 moreSource§impl Debug for ImageRequest
impl Debug for ImageRequest
Source§impl<'de> Deserialize<'de> for ImageRequest
impl<'de> Deserialize<'de> for ImageRequest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageRequest
Source§impl JsonSchema for ImageRequest
impl JsonSchema for ImageRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ImageRequest
impl PartialEq for ImageRequest
Source§impl Serialize for ImageRequest
impl Serialize for ImageRequest
impl StructuralPartialEq for ImageRequest
Auto Trait Implementations§
impl Freeze for ImageRequest
impl RefUnwindSafe for ImageRequest
impl Send for ImageRequest
impl Sync for ImageRequest
impl Unpin for ImageRequest
impl UnsafeUnpin for ImageRequest
impl UnwindSafe for ImageRequest
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