ipp_proto/operation/
cups.rs1use crate::ipp::Operation;
6use crate::operation::IppOperation;
7use crate::request::IppRequestResponse;
8
9#[derive(Default)]
11pub struct CupsGetPrinters;
12
13impl CupsGetPrinters {
14 pub fn new() -> CupsGetPrinters {
16 CupsGetPrinters::default()
17 }
18}
19
20impl IppOperation for CupsGetPrinters {
21 fn into_ipp_request(self, _uri: &str) -> IppRequestResponse {
22 IppRequestResponse::new(self.version(), Operation::CupsGetPrinters, None)
23 }
24}
25
26#[derive(Default)]
28pub struct CupsDeletePrinter;
29
30impl CupsDeletePrinter {
31 pub fn new() -> CupsDeletePrinter {
33 CupsDeletePrinter::default()
34 }
35}
36
37impl IppOperation for CupsDeletePrinter {
38 fn into_ipp_request(self, uri: &str) -> IppRequestResponse {
39 IppRequestResponse::new(self.version(), Operation::CupsDeletePrinter, Some(uri))
40 }
41}