pub struct DocumentLayout {
pub pages: usize,
pub sections: Vec<DocumentSection>,
pub reading_order: Vec<String>,
pub columns: Option<ColumnLayout>,
pub document_type: DocumentType,
}Expand description
Document layout information
Fields§
§pages: usizePage count
sections: Vec<DocumentSection>Document sections
reading_order: Vec<String>Reading order
columns: Option<ColumnLayout>Column layout
document_type: DocumentTypeDocument type
Trait Implementations§
Source§impl Clone for DocumentLayout
impl Clone for DocumentLayout
Source§fn clone(&self) -> DocumentLayout
fn clone(&self) -> DocumentLayout
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 DocumentLayout
impl Debug for DocumentLayout
Source§impl<'de> Deserialize<'de> for DocumentLayout
impl<'de> Deserialize<'de> for DocumentLayout
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 DocumentLayout
impl RefUnwindSafe for DocumentLayout
impl Send for DocumentLayout
impl Sync for DocumentLayout
impl Unpin for DocumentLayout
impl UnwindSafe for DocumentLayout
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