pub struct AutoLayout {
pub first: Option<String>,
pub last: Option<String>,
pub default: String,
pub rules: Vec<AutoRule>,
}Fields§
§first: Option<String>Class for the first page if no explicit class is set. None disables.
last: Option<String>Class for the last page if no explicit class is set. None disables.
default: StringClass used when no rule matches.
rules: Vec<AutoRule>Content-shape rules, evaluated in order; first match wins.
Trait Implementations§
Source§impl Clone for AutoLayout
impl Clone for AutoLayout
Source§impl Debug for AutoLayout
impl Debug for AutoLayout
Source§impl Default for AutoLayout
impl Default for AutoLayout
Source§impl<'de> Deserialize<'de> for AutoLayout
impl<'de> Deserialize<'de> for AutoLayout
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
impl Eq for AutoLayout
Source§impl PartialEq for AutoLayout
impl PartialEq for AutoLayout
Source§impl Serialize for AutoLayout
impl Serialize for AutoLayout
impl StructuralPartialEq for AutoLayout
Auto Trait Implementations§
impl Freeze for AutoLayout
impl RefUnwindSafe for AutoLayout
impl Send for AutoLayout
impl Sync for AutoLayout
impl Unpin for AutoLayout
impl UnsafeUnpin for AutoLayout
impl UnwindSafe for AutoLayout
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