pub struct GenerateImagesResponse {
pub sdk_http_response: Option<HttpResponse>,
pub generated_images: Vec<GeneratedImage>,
pub positive_prompt_safety_attributes: Option<SafetyAttributes>,
}Expand description
图像生成响应。
Fields§
§sdk_http_response: Option<HttpResponse>Optional. Used to retain the full HTTP response.
generated_images: Vec<GeneratedImage>§positive_prompt_safety_attributes: Option<SafetyAttributes>Trait Implementations§
Source§impl Clone for GenerateImagesResponse
impl Clone for GenerateImagesResponse
Source§fn clone(&self) -> GenerateImagesResponse
fn clone(&self) -> GenerateImagesResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 GenerateImagesResponse
impl Debug for GenerateImagesResponse
Source§impl Default for GenerateImagesResponse
impl Default for GenerateImagesResponse
Source§fn default() -> GenerateImagesResponse
fn default() -> GenerateImagesResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerateImagesResponse
impl<'de> Deserialize<'de> for GenerateImagesResponse
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 GenerateImagesResponse
impl RefUnwindSafe for GenerateImagesResponse
impl Send for GenerateImagesResponse
impl Sync for GenerateImagesResponse
impl Unpin for GenerateImagesResponse
impl UnsafeUnpin for GenerateImagesResponse
impl UnwindSafe for GenerateImagesResponse
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