pub struct Print {
pub printable: bool,
pub copies: Option<i32>,
pub xml_other_attrs: Vec<(Box<str>, Box<str>)>,
pub xml_other_children: Vec<(usize, Box<str>)>,
}Expand description
打印权限设置。
Fields§
§printable: bool文档是否允许被打印。默认值为 true。
copies: Option<i32>打印份数,在 Printable 为 true 时有效,若 Printable 为 true 并且不设置 Copies 则打印份数不受限,若 Copies 的值为负值时,打印份数不受限,当 Copies 的值为 0 时,不允许打印,当 Copies 的值大于 0 时,则代表实际可打印的份数值。
xml_other_attrs: Vec<(Box<str>, Box<str>)>§xml_other_children: Vec<(usize, Box<str>)>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Print
impl RefUnwindSafe for Print
impl Send for Print
impl Sync for Print
impl Unpin for Print
impl UnsafeUnpin for Print
impl UnwindSafe for Print
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