Skip to main content

get_printer_attributes

Function get_printer_attributes 

Source
pub fn get_printer_attributes(
    version: IppVersion,
    request_id: u32,
    record: &PrinterRecord,
    host: &str,
    port: u16,
    requested: Option<&BTreeSet<String>>,
) -> Result<IppRequestResponse, IppParseError>
Expand description

Build a successful Get-Printer-Attributes response.

requested is the client’s requested-attributes set. None (or a set containing the magic value all) returns the full attribute group; a concrete set filters the response down to the named attributes (RFC 8011 §4.2.5).