pub struct ImageGenerationResponse {
pub id: String,
pub images: Vec<String>,
pub request: Option<Value>,
pub timing: Option<ImageGenerationTiming>,
}Expand description
Venice’s POST /image/generate payload.
Fields§
§id: StringVenice’s generation id.
images: Vec<String>Base64-encoded images, one per requested variant.
request: Option<Value>Venice’s echo of the request it applied.
timing: Option<ImageGenerationTiming>Generation timings.
Trait Implementations§
Source§impl Debug for ImageGenerationResponse
impl Debug for ImageGenerationResponse
Source§impl<'de> Deserialize<'de> for ImageGenerationResponse
impl<'de> Deserialize<'de> for ImageGenerationResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImageGenerationResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImageGenerationResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ImageGenerationResponse
impl Serialize for ImageGenerationResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ImageGenerationResponse> for ImageGenerationResponse<ImageGenerationResponse>
impl TryFrom<ImageGenerationResponse> for ImageGenerationResponse<ImageGenerationResponse>
Source§type Error = ImageGenerationError
type Error = ImageGenerationError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ImageGenerationResponse,
) -> Result<ImageGenerationResponse<ImageGenerationResponse>, <ImageGenerationResponse<ImageGenerationResponse> as TryFrom<ImageGenerationResponse>>::Error>
fn try_from( value: ImageGenerationResponse, ) -> Result<ImageGenerationResponse<ImageGenerationResponse>, <ImageGenerationResponse<ImageGenerationResponse> as TryFrom<ImageGenerationResponse>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ImageGenerationResponse
impl RefUnwindSafe for ImageGenerationResponse
impl Send for ImageGenerationResponse
impl Sync for ImageGenerationResponse
impl Unpin for ImageGenerationResponse
impl UnsafeUnpin for ImageGenerationResponse
impl UnwindSafe for ImageGenerationResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DebuggableStorage for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.