pub enum ImagePayload {
B64Json {
b64_json: String,
},
Url {
url: String,
},
Artifact {
id: String,
name: Option<String>,
},
Metadata,
}Expand description
Generated output payload.
Variants§
B64Json
Base64 JSON response data.
Url
Provider-hosted or bridge-hosted URL.
Artifact
Bridge-owned artifact identifier.
Metadata
No body was requested.
Trait Implementations§
Source§impl Clone for ImagePayload
impl Clone for ImagePayload
Source§fn clone(&self) -> ImagePayload
fn clone(&self) -> ImagePayload
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 ImagePayload
impl Debug for ImagePayload
Source§impl<'de> Deserialize<'de> for ImagePayload
impl<'de> Deserialize<'de> for ImagePayload
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 ImagePayload
Source§impl JsonSchema for ImagePayload
impl JsonSchema for ImagePayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ImagePayload
impl PartialEq for ImagePayload
Source§impl Serialize for ImagePayload
impl Serialize for ImagePayload
impl StructuralPartialEq for ImagePayload
Auto Trait Implementations§
impl Freeze for ImagePayload
impl RefUnwindSafe for ImagePayload
impl Send for ImagePayload
impl Sync for ImagePayload
impl Unpin for ImagePayload
impl UnsafeUnpin for ImagePayload
impl UnwindSafe for ImagePayload
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