pub struct DocumentMetadata {
pub content_type: Option<String>,
pub file_size: Option<u64>,
pub source: Option<String>,
pub author: Option<String>,
pub category: Option<String>,
pub keywords: Vec<String>,
pub permissions: Vec<String>,
pub attributes: HashMap<String, String>,
}Expand description
Document metadata
Fields§
§content_type: Option<String>Content type (MIME type)
file_size: Option<u64>File size in bytes
source: Option<String>Source URL or reference
Author or creator
category: Option<String>Document category
keywords: Vec<String>Keywords
permissions: Vec<String>Document permissions
attributes: HashMap<String, String>Custom attributes
Trait Implementations§
Source§impl Clone for DocumentMetadata
impl Clone for DocumentMetadata
Source§impl Debug for DocumentMetadata
impl Debug for DocumentMetadata
Source§impl Default for DocumentMetadata
impl Default for DocumentMetadata
Source§impl<'de> Deserialize<'de> for DocumentMetadata
impl<'de> Deserialize<'de> for DocumentMetadata
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 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