[][src]Struct krill::commons::util::xml::Attributes

pub struct Attributes { /* fields omitted */ }

A convenient wrapper for XML tag attributes

Implementations

impl Attributes[src]

pub fn take_opt(&mut self, name: &str) -> Option<String>[src]

Takes an optional attribute by name

pub fn take_opt_hex(&mut self, name: &str) -> Option<Bytes>[src]

Takes an optional hexencoded attribute and converts it to Bytes

pub fn take_req(&mut self, name: &str) -> Result<String, AttributesError>[src]

Takes a required attribute by name

pub fn take_req_hex(&mut self, name: &str) -> Result<Bytes, AttributesError>[src]

Takes a required hexencoded attribute and converts it to Bytes

pub fn exhausted(&self) -> Result<(), AttributesError>[src]

Verifies that there are no more attributes

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.