#[non_exhaustive]pub struct ImageGenerationCall {Show 13 fields
pub error: Option<ImageGenerationCallError>,
pub agent: Option<Option<Agent>>,
pub action: Option<Option<ImageAction>>,
pub background: Option<Option<ImageBackground>>,
pub output_format: Option<Option<ImageOutputFormat>>,
pub quality: Option<Option<ImageQuality>>,
pub revised_prompt: Option<Option<String>>,
pub size: Option<Option<String>>,
pub type_: ImageGenerationCallType,
pub id: String,
pub result: Option<String>,
pub status: ImageGenerationStatus,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.error: Option<ImageGenerationCallError>§agent: Option<Option<Agent>>§action: Option<Option<ImageAction>>§background: Option<Option<ImageBackground>>§output_format: Option<Option<ImageOutputFormat>>§quality: Option<Option<ImageQuality>>§revised_prompt: Option<Option<String>>§size: Option<Option<String>>§type_: ImageGenerationCallType§id: String§result: Option<String>§status: ImageGenerationStatus§rest: RestImplementations§
Source§impl ImageGenerationCall
impl ImageGenerationCall
Sourcepub fn builder(
type_: ImageGenerationCallType,
id: String,
result: Option<String>,
status: ImageGenerationStatus,
) -> ImageGenerationCallBuilder
pub fn builder( type_: ImageGenerationCallType, id: String, result: Option<String>, status: ImageGenerationStatus, ) -> ImageGenerationCallBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ImageGenerationCall
impl Clone for ImageGenerationCall
Source§impl Debug for ImageGenerationCall
impl Debug for ImageGenerationCall
Source§impl DeclaredFields for ImageGenerationCall
impl DeclaredFields for ImageGenerationCall
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ImageGenerationCall
impl<'de> Deserialize<'de> for ImageGenerationCall
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 ImageGenerationCall
Source§impl PartialEq for ImageGenerationCall
impl PartialEq for ImageGenerationCall
Source§impl Serialize for ImageGenerationCall
impl Serialize for ImageGenerationCall
impl StructuralPartialEq for ImageGenerationCall
Auto Trait Implementations§
impl Freeze for ImageGenerationCall
impl RefUnwindSafe for ImageGenerationCall
impl Send for ImageGenerationCall
impl Sync for ImageGenerationCall
impl Unpin for ImageGenerationCall
impl UnsafeUnpin for ImageGenerationCall
impl UnwindSafe for ImageGenerationCall
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