pub struct AsyncImageTaskResult {
pub model: Option<String>,
pub task_status: Option<TaskStatus>,
pub image_result: Option<Vec<AsyncImageResultItem>>,
pub request_id: Option<String>,
}Expand description
A completed asynchronous image-generation result.
Fields§
§model: Option<String>Model that generated the image.
task_status: Option<TaskStatus>Current task status.
image_result: Option<Vec<AsyncImageResultItem>>Generated images.
request_id: Option<String>Request identifier.
Implementations§
Source§impl AsyncImageTaskResult
impl AsyncImageTaskResult
Sourcepub const fn status(&self) -> Option<&TaskStatus>
pub const fn status(&self) -> Option<&TaskStatus>
Borrow the current task status.
Sourcepub fn images(&self) -> Option<&[AsyncImageResultItem]>
pub fn images(&self) -> Option<&[AsyncImageResultItem]>
Borrow the generated image items.
Trait Implementations§
Source§impl Clone for AsyncImageTaskResult
impl Clone for AsyncImageTaskResult
Source§fn clone(&self) -> AsyncImageTaskResult
fn clone(&self) -> AsyncImageTaskResult
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 AsyncImageTaskResult
impl Debug for AsyncImageTaskResult
Source§impl<'de> Deserialize<'de> for AsyncImageTaskResult
impl<'de> Deserialize<'de> for AsyncImageTaskResult
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
Auto Trait Implementations§
impl Freeze for AsyncImageTaskResult
impl RefUnwindSafe for AsyncImageTaskResult
impl Send for AsyncImageTaskResult
impl Sync for AsyncImageTaskResult
impl Unpin for AsyncImageTaskResult
impl UnsafeUnpin for AsyncImageTaskResult
impl UnwindSafe for AsyncImageTaskResult
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