pub struct DocumentMetadata {Show 13 fields
pub title: Option<String>,
pub author: Option<String>,
pub language: Option<String>,
pub page_count: u32,
pub publisher: Option<String>,
pub creator_tool: Option<String>,
pub producer: Option<String>,
pub pdf_version: Option<String>,
pub created: Option<String>,
pub modified: Option<String>,
pub description: Option<String>,
pub encrypted: Option<bool>,
pub has_marked_content: Option<bool>,
}Fields§
§title: Option<String>§language: Option<String>§page_count: u32§publisher: Option<String>§creator_tool: Option<String>§producer: Option<String>§pdf_version: Option<String>§created: Option<String>§modified: Option<String>§description: Option<String>§encrypted: Option<bool>§has_marked_content: Option<bool>Implementations§
Source§impl DocumentMetadata
impl DocumentMetadata
Sourcepub fn merge_extracted(&mut self, extracted: DocumentMetadata)
pub fn merge_extracted(&mut self, extracted: DocumentMetadata)
Merge extracted metadata on top of current values.
Non-None fields from extracted overwrite; None fields preserve existing.
page_count overwrites if > 0.
Trait Implementations§
Source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
Source§fn clone(&self) -> DocumentMetadata
fn clone(&self) -> DocumentMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentMetadata
impl Debug for DocumentMetadata
Source§impl Default for DocumentMetadata
impl Default for DocumentMetadata
Source§fn default() -> DocumentMetadata
fn default() -> DocumentMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentMetadata
impl<'de> Deserialize<'de> for DocumentMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DocumentMetadata
impl Serialize for DocumentMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DocumentMetadata
impl RefUnwindSafe for DocumentMetadata
impl Send for DocumentMetadata
impl Sync for DocumentMetadata
impl Unpin for DocumentMetadata
impl UnsafeUnpin for DocumentMetadata
impl UnwindSafe for DocumentMetadata
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