[][src]Struct stegano_core::message::Message

pub struct Message {
    pub header: ContentVersion,
    pub files: Vec<(String, Vec<u8>)>,
    pub text: Option<String>,
}

Fields

header: ContentVersionfiles: Vec<(String, Vec<u8>)>text: Option<String>

Implementations

impl Message[src]

pub fn of(dec: &mut dyn Read) -> Self[src]

pub fn new_of_files(files: &[String]) -> Self[src]

pub fn add_file(&mut self, file: &str) -> &mut Self[src]

pub fn add_file_data(&mut self, file: &str, data: Vec<u8>) -> &mut Self[src]

pub fn empty() -> Self[src]

Trait Implementations

impl<'_> From<&'_ mut Vec<u8>> for Message[src]

impl<'_> Into<Vec<u8>> for &'_ Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.