[−][src]Enum ipp_proto::value::IppValue
IPP value enumeration
Variants
Integer(i32)
Enum(i32)
OctetString(String)
TextWithoutLanguage(String)
NameWithoutLanguage(String)
Charset(String)
NaturalLanguage(String)
Uri(String)
RangeOfInteger
Fields of RangeOfInteger
Boolean(bool)
Keyword(String)
ListOf(Vec<IppValue>)
Collection(Vec<IppValue>)
MimeMediaType(String)
DateTime
Fields of DateTime
MemberAttrName(String)
Resolution
Fields of Resolution
Other
Fields of Other
Methods
impl IppValue
[src]
pub fn as_integer(&self) -> Option<&i32>
[src]
Optionally returns references to the inner fields if this is a IppValue::Integer
, otherwise None
pub fn as_enum(&self) -> Option<&i32>
[src]
Optionally returns references to the inner fields if this is a IppValue::Enum
, otherwise None
pub fn as_octetstring(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::OctetString
, otherwise None
pub fn as_textwithoutlanguage(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::TextWithoutLanguage
, otherwise None
pub fn as_namewithoutlanguage(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::NameWithoutLanguage
, otherwise None
pub fn as_charset(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::Charset
, otherwise None
pub fn as_naturallanguage(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::NaturalLanguage
, otherwise None
pub fn as_uri(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::Uri
, otherwise None
pub fn as_rangeofinteger(&self) -> Option<(&i32, &i32)>
[src]
Optionally returns references to the inner fields if this is a IppValue::RangeOfInteger
, otherwise None
pub fn as_boolean(&self) -> Option<&bool>
[src]
Optionally returns references to the inner fields if this is a IppValue::Boolean
, otherwise None
pub fn as_keyword(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::Keyword
, otherwise None
pub fn as_listof(&self) -> Option<&Vec<IppValue>>
[src]
Optionally returns references to the inner fields if this is a IppValue::ListOf
, otherwise None
pub fn as_collection(&self) -> Option<&Vec<IppValue>>
[src]
Optionally returns references to the inner fields if this is a IppValue::Collection
, otherwise None
pub fn as_mimemediatype(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::MimeMediaType
, otherwise None
pub fn as_datetime(
&self
) -> Option<(&u16, &u8, &u8, &u8, &u8, &u8, &u8, &char, &u8, &u8)>
[src]
&self
) -> Option<(&u16, &u8, &u8, &u8, &u8, &u8, &u8, &char, &u8, &u8)>
Optionally returns references to the inner fields if this is a IppValue::DateTime
, otherwise None
pub fn as_memberattrname(&self) -> Option<&String>
[src]
Optionally returns references to the inner fields if this is a IppValue::MemberAttrName
, otherwise None
pub fn as_resolution(&self) -> Option<(&i32, &i32, &i8)>
[src]
Optionally returns references to the inner fields if this is a IppValue::Resolution
, otherwise None
pub fn as_other(&self) -> Option<(&u8, &Bytes)>
[src]
Optionally returns references to the inner fields if this is a IppValue::Other
, otherwise None
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
Trait Implementations
impl PartialEq<IppValue> for IppValue
[src]
impl Clone for IppValue
[src]
fn clone(&self) -> 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 = IppValueIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
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 Unpin for IppValue
impl Sync for IppValue
impl RefUnwindSafe for IppValue
impl UnwindSafe for IppValue
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,