pub struct OmittedBinaryResult {
pub byte_length: i64,
pub description: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub mime_type: String,
pub omitted_reason: OmittedBinaryOmittedReason,
pub type: OmittedBinaryType,
}Expand description
A binary result whose data was omitted from persistence due to the inline size limit
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§byte_length: i64Decoded byte length of the omitted 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 omitted binary data
omitted_reason: OmittedBinaryOmittedReasonWhy the binary data is absent: it exceeded the inline size limit, or its asset was unavailable
type: OmittedBinaryTypeBinary result type discriminator. Use “image” for images and “resource” for other binary data.
Trait Implementations§
Source§impl Clone for OmittedBinaryResult
impl Clone for OmittedBinaryResult
Source§fn clone(&self) -> OmittedBinaryResult
fn clone(&self) -> OmittedBinaryResult
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 OmittedBinaryResult
impl Debug for OmittedBinaryResult
Source§impl Default for OmittedBinaryResult
impl Default for OmittedBinaryResult
Source§fn default() -> OmittedBinaryResult
fn default() -> OmittedBinaryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OmittedBinaryResult
impl<'de> Deserialize<'de> for OmittedBinaryResult
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 OmittedBinaryResult
impl RefUnwindSafe for OmittedBinaryResult
impl Send for OmittedBinaryResult
impl Sync for OmittedBinaryResult
impl Unpin for OmittedBinaryResult
impl UnsafeUnpin for OmittedBinaryResult
impl UnwindSafe for OmittedBinaryResult
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