Struct ashpd::desktop::print::PageSetup[][src]

pub struct PageSetup {
    pub ppdname: Option<String>,
    pub name: Option<String>,
    pub display_name: Option<String>,
    pub width: Option<f64>,
    pub height: Option<f64>,
    pub margin_top: Option<f64>,
    pub margin_bottom: Option<f64>,
    pub margin_right: Option<f64>,
    pub margin_left: Option<f64>,
    pub orientation: Option<Orientation>,
}
Expand description

Setup the printed pages.

Fields

ppdname: Option<String>

the PPD name. It’s the name to select a given driver.

name: Option<String>

The name of the page setup.

display_name: Option<String>

The user-visible name of the page setup.

width: Option<f64>

Paper width in millimeters.

height: Option<f64>

Paper height in millimeters.

margin_top: Option<f64>

Top margin in millimeters.

margin_bottom: Option<f64>

Bottom margin in millimeters.

margin_right: Option<f64>

Right margin in millimeters.

margin_left: Option<f64>

Left margin in millimeters.

orientation: Option<Orientation>

The page orientation.

Implementations

Sets the ppdname.

Sets the name of the page setup.

Sets the user visible name of the page setup.

Sets the orientation.

Sets the page width.

Sets the page height.

Sets the page top margin.

Sets the page bottom margin.

Sets the page right margin.

Sets the page margin left.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.