Struct ipp::attribute::IppAttribute
[−]
[src]
pub struct IppAttribute { /* fields omitted */ }
IppAttribute
represents an IPP attribute
Methods
impl IppAttribute
[src]
pub fn new(name: &str, value: IppValue) -> IppAttribute
[src]
Create new instance of the attribute
name
- Attribute namevalue
- Attribute value
pub fn name(&self) -> &str
[src]
Return attribute name
pub fn value(&self) -> &IppValue
[src]
Return attribute value
pub fn write(&self, writer: &mut Write) -> Result<usize>
[src]
Serialize attribute into binary stream
Trait Implementations
impl Clone for IppAttribute
[src]
fn clone(&self) -> IppAttribute
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more