pub enum PrintPreset {
A4Score,
LetterScore,
A4Part {
part_index: usize,
},
LetterPart {
part_index: usize,
},
}Expand description
Reproducible starting configurations for common publication workflows.
Variants§
Implementations§
Source§impl PrintPreset
impl PrintPreset
Sourcepub fn config(self) -> PrintConfig
pub fn config(self) -> PrintConfig
Build a configuration without consulting host defaults or installed resources.
Sourcepub fn config_with_title_page(self, title_page: bool) -> PrintConfig
pub fn config_with_title_page(self, title_page: bool) -> PrintConfig
Build this preset with the publication title-page policy explicitly selected.
Sourcepub const fn schema_version(self) -> u16
pub const fn schema_version(self) -> u16
Return the schema version for this preset data.
Trait Implementations§
Source§impl Clone for PrintPreset
impl Clone for PrintPreset
impl Copy for PrintPreset
Source§impl Debug for PrintPreset
impl Debug for PrintPreset
Source§impl<'de> Deserialize<'de> for PrintPreset
impl<'de> Deserialize<'de> for PrintPreset
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 PrintPreset
Source§impl PartialEq for PrintPreset
impl PartialEq for PrintPreset
Source§impl Serialize for PrintPreset
impl Serialize for PrintPreset
impl StructuralPartialEq for PrintPreset
Auto Trait Implementations§
impl Freeze for PrintPreset
impl RefUnwindSafe for PrintPreset
impl Send for PrintPreset
impl Sync for PrintPreset
impl Unpin for PrintPreset
impl UnsafeUnpin for PrintPreset
impl UnwindSafe for PrintPreset
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