pub struct ImageResponse {Show 15 fields
pub id: String,
pub created: u64,
pub provider: String,
pub model: String,
pub requested: GenerationParameters,
pub effective: GenerationParameters,
pub normalizations: Vec<Normalization>,
pub attempts: Vec<ProviderAttempt>,
pub data: Vec<GeneratedImage>,
pub failures: Vec<ImageFailure>,
pub revised_prompt: Option<String>,
pub usage: Option<Usage>,
pub session: Option<SessionMetadata>,
pub timings: Timings,
pub warnings: Vec<String>,
}Expand description
Complete normalized response.
Fields§
§id: StringStable bridge request ID.
created: u64Unix timestamp at completion.
provider: StringProvider that executed the request.
model: StringEffective provider model.
requested: GenerationParametersRequested generation parameters.
effective: GenerationParametersEffective generation parameters.
normalizations: Vec<Normalization>Explicit normalizations and fallbacks.
attempts: Vec<ProviderAttempt>Ordered provider attempts, included when fallback routing was requested or used.
data: Vec<GeneratedImage>Generated images.
failures: Vec<ImageFailure>Per-output failures returned only by best-effort multi-image requests.
revised_prompt: Option<String>Revised prompt when available and permitted by policy.
usage: Option<Usage>Provider usage accounting.
session: Option<SessionMetadata>Session/thread metadata.
timings: TimingsRequest stage timings.
warnings: Vec<String>Stable warning codes.
Trait Implementations§
Source§impl Clone for ImageResponse
impl Clone for ImageResponse
Source§fn clone(&self) -> ImageResponse
fn clone(&self) -> ImageResponse
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 ImageResponse
impl Debug for ImageResponse
Source§impl<'de> Deserialize<'de> for ImageResponse
impl<'de> Deserialize<'de> for ImageResponse
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 ImageResponse
Source§impl JsonSchema for ImageResponse
impl JsonSchema for ImageResponse
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 ImageResponse
impl PartialEq for ImageResponse
Source§impl Serialize for ImageResponse
impl Serialize for ImageResponse
impl StructuralPartialEq for ImageResponse
Auto Trait Implementations§
impl Freeze for ImageResponse
impl RefUnwindSafe for ImageResponse
impl Send for ImageResponse
impl Sync for ImageResponse
impl Unpin for ImageResponse
impl UnsafeUnpin for ImageResponse
impl UnwindSafe for ImageResponse
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