pub struct GeneratedImage {
pub index: u8,
pub payload: ImagePayload,
pub format: OutputFormat,
pub width: u32,
pub height: u32,
pub bytes: u64,
pub sha256: String,
pub generation_ms: Option<u64>,
pub metadata_name: Option<String>,
}Expand description
Metadata and payload for one generated image.
Fields§
§index: u8Zero-based requested output index.
payload: ImagePayloadOutput payload or artifact reference.
format: OutputFormatVerified output format.
width: u32Verified width in pixels.
height: u32Verified height in pixels.
bytes: u64Verified encoded byte length.
sha256: StringLowercase hexadecimal SHA-256 digest.
generation_ms: Option<u64>Provider time for this output when measured independently.
metadata_name: Option<String>Portable relative name of an opt-in metadata sidecar.
Trait Implementations§
Source§impl Clone for GeneratedImage
impl Clone for GeneratedImage
Source§fn clone(&self) -> GeneratedImage
fn clone(&self) -> GeneratedImage
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 GeneratedImage
impl Debug for GeneratedImage
Source§impl<'de> Deserialize<'de> for GeneratedImage
impl<'de> Deserialize<'de> for GeneratedImage
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 GeneratedImage
Source§impl JsonSchema for GeneratedImage
impl JsonSchema for GeneratedImage
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 GeneratedImage
impl PartialEq for GeneratedImage
Source§impl Serialize for GeneratedImage
impl Serialize for GeneratedImage
impl StructuralPartialEq for GeneratedImage
Auto Trait Implementations§
impl Freeze for GeneratedImage
impl RefUnwindSafe for GeneratedImage
impl Send for GeneratedImage
impl Sync for GeneratedImage
impl Unpin for GeneratedImage
impl UnsafeUnpin for GeneratedImage
impl UnwindSafe for GeneratedImage
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