pub struct Attachment {
pub name: String,
pub src: String,
pub mime_type: Option<String>,
pub relationship: Option<AfRelationship>,
pub description: Option<String>,
pub mod_date: Option<String>,
}Expand description
A file embedded as a PDF attachment (associated file).
Fields§
§name: StringFilename recorded in /F, /UF, and the EmbeddedFiles name tree
(e.g. factur-x.xml).
src: StringFile bytes, base64-encoded (a data: URI prefix is tolerated).
mime_type: Option<String>MIME type for the stream /Subtype (PDF/A-3 requires one);
defaults to application/octet-stream.
relationship: Option<AfRelationship>How the file relates to the document (/AFRelationship).
Defaults to Unspecified; the Factur-X path derives the correct
value from the profile when unset.
description: Option<String>Optional human-readable /Desc.
mod_date: Option<String>Modification date for /Params /ModDate, as a PDF date string
(D:YYYYMMDDHHmmSSZ). Defaults to a fixed constant — never
wall-clock — so output stays byte-deterministic.
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
Source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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