pub struct PrintJob { /* private fields */ }
Expand description
IPP operation Print-Job
Implementations§
source§impl PrintJob
impl PrintJob
sourcepub fn new<S, U, N>(
printer_uri: Uri,
payload: S,
user_name: Option<U>,
job_name: Option<N>
) -> PrintJobwhere
S: Into<IppPayload>,
U: AsRef<str>,
N: AsRef<str>,
pub fn new<S, U, N>( printer_uri: Uri, payload: S, user_name: Option<U>, job_name: Option<N> ) -> PrintJobwhere S: Into<IppPayload>, U: AsRef<str>, N: AsRef<str>,
Create Print-Job operation
printer_uri
- printer URIpayload
- job payloaduser_name
- name of the user (requesting-user-name)job_name
- job name (job-name)
sourcepub fn add_attribute(&mut self, attribute: IppAttribute)
pub fn add_attribute(&mut self, attribute: IppAttribute)
Set extra job attribute for this operation, for example colormodel=grayscale
Trait Implementations§
source§impl IppOperation for PrintJob
impl IppOperation for PrintJob
source§fn into_ipp_request(self) -> IppRequestResponse
fn into_ipp_request(self) -> IppRequestResponse
Convert this operation to IPP request which is ready for sending
source§fn version(&self) -> IppVersion
fn version(&self) -> IppVersion
Return IPP version for this operation. Default is 1.1
Auto Trait Implementations§
impl !RefUnwindSafe for PrintJob
impl Send for PrintJob
impl Sync for PrintJob
impl Unpin for PrintJob
impl !UnwindSafe for PrintJob
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more