Skip to main content

IntoAttachment

Trait IntoAttachment 

Source
pub trait IntoAttachment {
    // Required methods
    fn into_bytes(self) -> Vec<u8> ;
    fn attachment_type(&self) -> AttachmentType;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoAttachment for &[u8]

Source§

impl IntoAttachment for &str

Source§

impl IntoAttachment for String

Source§

impl IntoAttachment for Value

Source§

impl IntoAttachment for Vec<u8>

Implementors§