pub struct DocumentMedia {
pub url: String,
pub absolute_url: Option<String>,
pub doc_type: DocumentType,
pub filename: Option<String>,
pub title: Option<String>,
pub mime_type: Option<String>,
pub size_bytes: Option<usize>,
pub page_count: Option<u32>,
}Expand description
Extracted document
Fields§
§url: StringDocument URL
absolute_url: Option<String>Resolved absolute URL
doc_type: DocumentTypeDocument type
filename: Option<String>Filename
title: Option<String>Title (from link text or title attribute)
mime_type: Option<String>MIME type
size_bytes: Option<usize>File size in bytes
page_count: Option<u32>Page count (if known)
Trait Implementations§
Source§impl Clone for DocumentMedia
impl Clone for DocumentMedia
Source§fn clone(&self) -> DocumentMedia
fn clone(&self) -> DocumentMedia
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 DocumentMedia
impl Debug for DocumentMedia
Source§impl Default for DocumentMedia
impl Default for DocumentMedia
Source§impl<'de> Deserialize<'de> for DocumentMedia
impl<'de> Deserialize<'de> for DocumentMedia
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 DocumentMedia
impl RefUnwindSafe for DocumentMedia
impl Send for DocumentMedia
impl Sync for DocumentMedia
impl Unpin for DocumentMedia
impl UnwindSafe for DocumentMedia
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