IPP protocol implementation for Rust
Usage example:
extern crate ipp;
use ipp::consts::tag::DelimiterTag;
use ipp::{GetPrinterAttributes, IppClient};
pub fn main() {
let client = IppClient::new("http://localhost:631/printers/test-printer");
let mut operation = GetPrinterAttributes::new();
let attrs = client.send(&mut operation).unwrap();
for v in attrs.get_group(DelimiterTag::PrinterAttributes).unwrap().values() {
println!("{}: {}", v.name(), v.value());
}
}
Licensed under MIT or Apache license (LICENSE-MIT or LICENSE-APACHE)