pub struct BinaryAssetReference {
pub asset_id: String,
pub byte_length: i64,
pub description: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub mime_type: String,
pub type: BinaryAssetReferenceType,
}Expand description
A reference to binary data persisted once on a session.binary_asset event and shared by id
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§asset_id: StringContent-addressed id of the session.binary_asset event that holds this binary’s bytes (e.g. “sha256:…”).
byte_length: i64Decoded byte length of the referenced 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 referenced binary data
type: BinaryAssetReferenceTypeBinary result type discriminator. Use “image” for images and “resource” for other binary data.
Trait Implementations§
Source§impl Clone for BinaryAssetReference
impl Clone for BinaryAssetReference
Source§fn clone(&self) -> BinaryAssetReference
fn clone(&self) -> BinaryAssetReference
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 BinaryAssetReference
impl Debug for BinaryAssetReference
Source§impl Default for BinaryAssetReference
impl Default for BinaryAssetReference
Source§fn default() -> BinaryAssetReference
fn default() -> BinaryAssetReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BinaryAssetReference
impl<'de> Deserialize<'de> for BinaryAssetReference
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 BinaryAssetReference
impl RefUnwindSafe for BinaryAssetReference
impl Send for BinaryAssetReference
impl Sync for BinaryAssetReference
impl Unpin for BinaryAssetReference
impl UnsafeUnpin for BinaryAssetReference
impl UnwindSafe for BinaryAssetReference
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