[][src]Struct ipp::attribute::IppAttributeList

pub struct IppAttributeList { /* fields omitted */ }

Attribute list indexed by group and name

Methods

impl IppAttributeList[src]

pub fn new() -> IppAttributeList[src]

Create attribute list

pub fn add(&mut self, group: DelimiterTag, attribute: IppAttribute)[src]

Add attribute to the list

  • group - delimiter group
  • attribute - attribute to add

pub fn get<'a>(
    &'a self,
    group: DelimiterTag,
    name: &str
) -> Option<&IppAttribute>
[src]

Get attribute from the list

pub fn get_group(
    &self,
    group: DelimiterTag
) -> Option<&HashMap<String, IppAttribute>>
[src]

Get attribute list for a group

pub fn get_printer_attributes(&self) -> Option<&HashMap<String, IppAttribute>>[src]

Get printer attributes

pub fn get_job_attributes(&self) -> Option<&HashMap<String, IppAttribute>>[src]

Get job attributes

pub fn get_operation_attributes(&self) -> Option<&HashMap<String, IppAttribute>>[src]

Get operation attributes

pub fn write(&self, writer: &mut dyn Write) -> Result<usize>[src]

Serialize attribute list into binary stream

Trait Implementations

impl Default for IppAttributeList[src]

impl Clone for IppAttributeList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IppAttributeList[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err