pub struct PersistedBinaryImage {
pub data: String,
pub description: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub mime_type: String,
pub type: PersistedBinaryImageType,
}Expand description
Binary result returned by a tool for the model
Fields§
§data: StringBase64-encoded binary data
description: Option<String>Human-readable description of the binary data
metadata: Option<HashMap<String, Value>>Optional metadata from the producing tool.
mime_type: StringMIME type of the binary data
type: PersistedBinaryImageTypeBinary result type discriminator. Use “image” for images and “resource” for other binary data.
Trait Implementations§
Source§impl Clone for PersistedBinaryImage
impl Clone for PersistedBinaryImage
Source§fn clone(&self) -> PersistedBinaryImage
fn clone(&self) -> PersistedBinaryImage
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 PersistedBinaryImage
impl Debug for PersistedBinaryImage
Source§impl Default for PersistedBinaryImage
impl Default for PersistedBinaryImage
Source§fn default() -> PersistedBinaryImage
fn default() -> PersistedBinaryImage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistedBinaryImage
impl<'de> Deserialize<'de> for PersistedBinaryImage
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 PersistedBinaryImage
impl RefUnwindSafe for PersistedBinaryImage
impl Send for PersistedBinaryImage
impl Sync for PersistedBinaryImage
impl Unpin for PersistedBinaryImage
impl UnsafeUnpin for PersistedBinaryImage
impl UnwindSafe for PersistedBinaryImage
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