Skip to main content

NormalizeImageGenerationResponse

Trait NormalizeImageGenerationResponse 

Source
pub trait NormalizeImageGenerationResponse {
    // Required method
    fn normalize(self) -> Result<ImageGenerationResponse, ProviderError>;
}
Available on crate feature image only.
Expand description

Normalizes provider image payloads. The driver writes the provider, request id and raw afterwards.

Required Methods§

Source

fn normalize(self) -> Result<ImageGenerationResponse, ProviderError>

Normalize this payload.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§