pub struct ImageAttachment {
pub position: u32,
pub media_type: ImageMediaType,
pub byte_size: u64,
pub sha256: String,
pub content_base64: Option<String>,
}Expand description
One policy-retained image attachment.
Fields§
§position: u32Stable zero-based presentation position within the event.
media_type: ImageMediaTypeValidated image media type.
byte_size: u64Decoded byte count before base64 transport encoding.
sha256: StringLowercase SHA-256 digest of the decoded image bytes.
content_base64: Option<String>Image content when policy permits full image retention.
Trait Implementations§
Source§impl Debug for ImageAttachment
impl Debug for ImageAttachment
Source§impl<'de> Deserialize<'de> for ImageAttachment
impl<'de> Deserialize<'de> for ImageAttachment
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 ImageAttachment
impl RefUnwindSafe for ImageAttachment
impl Send for ImageAttachment
impl Sync for ImageAttachment
impl Unpin for ImageAttachment
impl UnsafeUnpin for ImageAttachment
impl UnwindSafe for ImageAttachment
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