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

pub struct Settings {
Show fields pub orientation: Option<Orientation>, pub paper_format: Option<String>, pub paper_width: Option<String>, pub paper_height: Option<String>, pub n_copies: Option<String>, pub default_source: Option<String>, pub quality: Option<Quality>, pub resolution: Option<String>, pub use_color: Option<bool>, pub duplex: Option<String>, pub collate: Option<String>, pub reverse: Option<String>, pub media_type: Option<String>, pub dither: Option<String>, pub scale: Option<String>, pub print_pages: Option<String>, pub page_ranges: Option<String>, pub page_set: Option<String>, pub finishings: Option<String>, pub number_up: Option<String>, pub number_up_layout: Option<String>, pub output_bin: Option<String>, pub resolution_x: Option<String>, pub resolution_y: Option<String>, pub print_lpi: Option<String>, pub output_basename: Option<String>, pub output_file_format: Option<String>, pub output_uri: Option<String>,
}
Expand description

Print settings to set in the print dialog.

Fields

orientation: Option<Orientation>

One of landscape, portrait, reverse_landscape or reverse_portrait.

paper_format: Option<String>

A paper name according to PWG 5101.1-2002

paper_width: Option<String>

Paper width, in millimeters.

paper_height: Option<String>

Paper height, in millimeters.

n_copies: Option<String>

The number of copies to print.

default_source: Option<String>

The default paper source.

quality: Option<Quality>

Print quality.

resolution: Option<String>

The resolution, sets both resolution-x & resolution-y

use_color: Option<bool>

Whether to use color.

duplex: Option<String>

Duplex printing mode, one of simplex, horizontal or vertical.

collate: Option<String>

Whether to collate copies.

reverse: Option<String>

Whether to reverse the order of printed pages.

media_type: Option<String>

A media type according to PWG 5101.1-2002

dither: Option<String>

The dithering to use, one of fine, none, coarse, lineart, grayscale or error-diffusion.

scale: Option<String>

The scale in percent

print_pages: Option<String>

What pages to print, one of all, selection, current or ranges.

page_ranges: Option<String>

A list of page ranges, formatted like this: 0-2,4,9-11.

page_set: Option<String>

What pages to print, one of all, even or odd.

finishings: Option<String>

The finishings.

number_up: Option<String>

The number of pages per sheet.

number_up_layout: Option<String>

One of lrtb, lrbt, rltb, rlbt, tblr, tbrl, btlr, btrl.

output_bin: Option<String>

The output bin.

resolution_x: Option<String>

The horizontal resolution in dpi.

resolution_y: Option<String>

The vertical resolution in dpi.

print_lpi: Option<String>

The resolution in lpi (lines per inch).

output_basename: Option<String>

Basename to use for print-to-file.

output_file_format: Option<String>

Format to use for print-to-file, one of PDF, PS, SVG

output_uri: Option<String>

The uri used for print-to file.

Implementations

Sets the orientation.

Sets the paper name.

Sets the paper width.

Sets the paper height.

Sets the number of copies to print.

Sets the default paper source.

Sets the print quality.

Sets the resolution, both resolution-x & resolution-y.

Sets whether to use color.

Sets the duplex printing mode.

Whether to collate copies.

Sets whether to reverse the order of the printed pages.

Sets the media type.

Sets the dithering to use.

Sets the page scale in percent.

Sets what pages to print, one of all, selection, current or ranges.

Sets a list of page ranges, formatted like this: 0-2,4,9-11.

Sets what pages to print, one of all, even or odd.

Sets the finishings.

Sets the number of pages per sheet.

Sets the number up layout, one of lrtb, lrbt, rltb, rlbt, tblr, tbrl, btlr, btrl.

Sets the output bin

Sets the horizontal resolution in dpi.

Sets the vertical resolution in dpi.

Sets the resolution in lines per inch.

Sets the print-to-file base name.

Sets the print-to-file format, one of PS, PDF, SVG.

Sets the print-to-file output uri.

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.