pub struct PrintersResource<'a> { /* private fields */ }Expand description
client.printers()
Implementations§
Source§impl<'a> PrintersResource<'a>
impl<'a> PrintersResource<'a>
Sourcepub fn list(&self) -> Result<Vec<Printer>>
pub fn list(&self) -> Result<Vec<Printer>>
Get printers
GET /printers
Lists all configured check-in code printers, including inactive printers. active indicates whether a printer is enabled; the endpoint does not check online status or submit a print job. Requires authentication but no additional printer/check-in permission in this handler. Results have no pagination or guaranteed order, and meta.count is the number of returned printers.
§Example
for printer in client.printers().list()? {
println!("{}", printer.title);
}Trait Implementations§
Source§impl<'a> Clone for PrintersResource<'a>
impl<'a> Clone for PrintersResource<'a>
impl<'a> Copy for PrintersResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PrintersResource<'a>
impl<'a> !UnwindSafe for PrintersResource<'a>
impl<'a> Freeze for PrintersResource<'a>
impl<'a> Send for PrintersResource<'a>
impl<'a> Sync for PrintersResource<'a>
impl<'a> Unpin for PrintersResource<'a>
impl<'a> UnsafeUnpin for PrintersResource<'a>
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