pub struct Original {
pub hash: ContentHash,
pub size: u64,
pub media_type: String,
pub format: Option<String>,
pub name: Option<String>,
}Expand description
The file a document came as – an artefact: the document’s data never depends on reading it.
Fields§
§hash: ContentHashThe hash of its bytes.
size: u64Its size in bytes.
media_type: StringIts media type, for example application/pdf or application/xml.
format: Option<String>The structured format it carries, if any, for example en16931-cii (also a PDF with an embedded invoice),
en16931-ubl or iso20022-camt.053. Names of formats are listed in the specification.
name: Option<String>The file name it arrived with, if any.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Original
impl<'de> Deserialize<'de> for Original
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
impl Eq for Original
impl StructuralPartialEq for Original
Auto Trait Implementations§
impl Freeze for Original
impl RefUnwindSafe for Original
impl Send for Original
impl Sync for Original
impl Unpin for Original
impl UnsafeUnpin for Original
impl UnwindSafe for Original
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