pub struct FileData {
pub file: Vec<u8>,
pub thumbnail: Option<Vec<u8>>,
}
Expand description
Raw unencrypted bytes of a file and optionally a thumbnail.
This struct is used as a parameter type for encrypt_file_data
and
returned by decrypt_file_data
.
Fields§
§file: Vec<u8>
§thumbnail: Option<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileData
impl RefUnwindSafe for FileData
impl Send for FileData
impl Sync for FileData
impl Unpin for FileData
impl UnwindSafe for FileData
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