pub struct FileContents {
pub contents: String,
pub file_type: FileType,
pub checksum: String,
}Expand description
FileContents : The document data and checksum.
Fields§
§contents: StringData for printing labels encoded into a Base64, GZip-compressed string.
file_type: FileType§checksum: StringAn MD5 hash to validate the PDF document data, in the form of a Base64 string.
Implementations§
Source§impl FileContents
impl FileContents
Trait Implementations§
Source§impl Clone for FileContents
impl Clone for FileContents
Source§fn clone(&self) -> FileContents
fn clone(&self) -> FileContents
Returns a duplicate 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 FileContents
impl Debug for FileContents
Source§impl Default for FileContents
impl Default for FileContents
Source§fn default() -> FileContents
fn default() -> FileContents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileContents
impl<'de> Deserialize<'de> for FileContents
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 FileContents
impl PartialEq for FileContents
Source§impl Serialize for FileContents
impl Serialize for FileContents
impl StructuralPartialEq for FileContents
Auto Trait Implementations§
impl Freeze for FileContents
impl RefUnwindSafe for FileContents
impl Send for FileContents
impl Sync for FileContents
impl Unpin for FileContents
impl UnwindSafe for FileContents
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