pub struct SessionBinaryAssetData {
pub asset_id: String,
pub byte_length: i64,
pub data: String,
pub description: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub mime_type: String,
pub type: BinaryAssetType,
}Expand description
Session event “session.binary_asset”. Canonical bytes for a content-addressed binary asset shared by reference across events
Fields§
§asset_id: StringContent-addressed id for this binary asset (e.g. “sha256:…”).
byte_length: i64Decoded byte length of the binary asset
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 asset
type: BinaryAssetTypeBinary asset type discriminator. Use “image” for images and “resource” otherwise.
Trait Implementations§
Source§impl Clone for SessionBinaryAssetData
impl Clone for SessionBinaryAssetData
Source§fn clone(&self) -> SessionBinaryAssetData
fn clone(&self) -> SessionBinaryAssetData
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 SessionBinaryAssetData
impl Debug for SessionBinaryAssetData
Source§impl Default for SessionBinaryAssetData
impl Default for SessionBinaryAssetData
Source§fn default() -> SessionBinaryAssetData
fn default() -> SessionBinaryAssetData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionBinaryAssetData
impl<'de> Deserialize<'de> for SessionBinaryAssetData
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 SessionBinaryAssetData
impl RefUnwindSafe for SessionBinaryAssetData
impl Send for SessionBinaryAssetData
impl Sync for SessionBinaryAssetData
impl Unpin for SessionBinaryAssetData
impl UnsafeUnpin for SessionBinaryAssetData
impl UnwindSafe for SessionBinaryAssetData
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