[][src]Enum ipp::value::IppValue

pub enum IppValue {
    Integer(i32),
    Enum(i32),
    OctetString(String),
    TextWithoutLanguage(String),
    NameWithoutLanguage(String),
    Charset(String),
    NaturalLanguage(String),
    Uri(String),
    RangeOfInteger {
        min: i32,
        max: i32,
    },
    Boolean(bool),
    Keyword(String),
    ListOf(Vec<IppValue>),
    Collection(Vec<IppValue>),
    MimeMediaType(String),
    DateTime {
        year: u16,
        month: u8,
        day: u8,
        hour: u8,
        minutes: u8,
        seconds: u8,
        deciseconds: u8,
        utcdir: char,
        utchours: u8,
        utcmins: u8,
    },
    MemberAttrName(String),
    Resolution {
        crossfeed: i32,
        feed: i32,
        units: i8,
    },
    Other {
        tag: u8,
        data: Vec<u8>,
    },
}

Currently supported IPP values

Variants

Integer(i32)Enum(i32)OctetString(String)TextWithoutLanguage(String)NameWithoutLanguage(String)Charset(String)NaturalLanguage(String)Uri(String)RangeOfInteger

Fields of RangeOfInteger

min: i32max: i32
Boolean(bool)Keyword(String)ListOf(Vec<IppValue>)Collection(Vec<IppValue>)MimeMediaType(String)DateTime

Fields of DateTime

year: u16month: u8day: u8hour: u8minutes: u8seconds: u8deciseconds: u8utcdir: charutchours: u8utcmins: u8
MemberAttrName(String)Resolution

Fields of Resolution

crossfeed: i32feed: i32units: i8
Other

Fields of Other

tag: u8data: Vec<u8>

Methods

impl IppValue[src]

pub fn to_tag(&self) -> ValueTag[src]

Convert to binary tag

pub fn read(vtag: u8, reader: &mut dyn Read) -> Result<IppValue>[src]

Read value from binary stream

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

Write value to binary stream

Trait Implementations

impl PartialEq<IppValue> for IppValue[src]

impl Clone for IppValue[src]

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

Performs copy-assignment from source. Read more

impl<'a> IntoIterator for &'a IppValue[src]

type Item = &'a IppValue

The type of the elements being iterated over.

type IntoIter = IppValueIntoIterator<'a>

Which kind of iterator are we turning this into?

impl Display for IppValue[src]

Implement Display trait to print the value

impl Debug for IppValue[src]

Auto Trait Implementations

impl Send for IppValue

impl Sync for IppValue

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> ToString for T where
    T: Display + ?Sized
[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