pub struct SimpleAttachmentData {
pub base64: Option<String>,
pub json: Option<Value>,
}Expand description
Simple attachment data for a TAP message.
This structure represents a simplified version of attachment data that directly contains base64 or JSON without the complexity of the full AttachmentData enum.
Fields§
§base64: Option<String>Base64-encoded data.
json: Option<Value>JSON data.
Trait Implementations§
Source§impl Clone for SimpleAttachmentData
impl Clone for SimpleAttachmentData
Source§fn clone(&self) -> SimpleAttachmentData
fn clone(&self) -> SimpleAttachmentData
Returns a copy of the value. Read more
1.0.0 · 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 SimpleAttachmentData
impl Debug for SimpleAttachmentData
Source§impl<'de> Deserialize<'de> for SimpleAttachmentData
impl<'de> Deserialize<'de> for SimpleAttachmentData
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
Source§impl PartialEq for SimpleAttachmentData
impl PartialEq for SimpleAttachmentData
Source§impl Serialize for SimpleAttachmentData
impl Serialize for SimpleAttachmentData
impl StructuralPartialEq for SimpleAttachmentData
Auto Trait Implementations§
impl Freeze for SimpleAttachmentData
impl RefUnwindSafe for SimpleAttachmentData
impl Send for SimpleAttachmentData
impl Sync for SimpleAttachmentData
impl Unpin for SimpleAttachmentData
impl UnwindSafe for SimpleAttachmentData
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