pub struct CreateImageEditRequest {
    pub image: ImageInput,
    pub mask: ImageInput,
    pub prompt: String,
    pub n: Option<u8>,
    pub size: Option<ImageSize>,
    pub response_format: Option<ResponseFormat>,
    pub user: Option<String>,
}

Fields§

§image: ImageInput

The image to edit. Must be a valid PNG file, less than 4MB, and square.

§mask: ImageInput

An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.

§prompt: String

A text description of the desired image(s). The maximum length is 1000 characters.

§n: Option<u8>

The number of images to generate. Must be between 1 and 10.

§size: Option<ImageSize>

The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.

§response_format: Option<ResponseFormat>

The format in which the generated images are returned. Must be one of url or b64_json.

§user: Option<String>

A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse. Learn more.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more