Struct ipp::attribute::IppAttribute

source ·
pub struct IppAttribute { /* private fields */ }
Expand description

IppAttribute represents an IPP attribute

Implementations§

source§

impl IppAttribute

source

pub const ATTRIBUTES_CHARSET: &'static str = "attributes-charset"

source

pub const ATTRIBUTES_NATURAL_LANGUAGE: &'static str = "attributes-natural-language"

source

pub const CHARSET_CONFIGURED: &'static str = "charset-configured"

source

pub const CHARSET_SUPPORTED: &'static str = "charset-supported"

source

pub const COMPRESSION_SUPPORTED: &'static str = "compression-supported"

source

pub const DOCUMENT_FORMAT_DEFAULT: &'static str = "document-format-default"

source

pub const DOCUMENT_FORMAT_SUPPORTED: &'static str = "document-format-supported"

source

pub const GENERATED_NATURAL_LANGUAGE_SUPPORTED: &'static str = "generated-natural-language-supported"

source

pub const IPP_VERSIONS_SUPPORTED: &'static str = "ipp-versions-supported"

source

pub const NATURAL_LANGUAGE_CONFIGURED: &'static str = "natural-language-configured"

source

pub const OPERATIONS_SUPPORTED: &'static str = "operations-supported"

source

pub const PDL_OVERRIDE_SUPPORTED: &'static str = "pdl-override-supported"

source

pub const PRINTER_IS_ACCEPTING_JOBS: &'static str = "printer-is-accepting-jobs"

source

pub const PRINTER_MAKE_AND_MODEL: &'static str = "printer-make-and-model"

source

pub const PRINTER_NAME: &'static str = "printer-name"

source

pub const PRINTER_STATE: &'static str = "printer-state"

source

pub const PRINTER_STATE_MESSAGE: &'static str = "printer-state-message"

source

pub const PRINTER_STATE_REASONS: &'static str = "printer-state-reasons"

source

pub const PRINTER_UP_TIME: &'static str = "printer-up-time"

source

pub const PRINTER_URI: &'static str = "printer-uri"

source

pub const PRINTER_URI_SUPPORTED: &'static str = "printer-uri-supported"

source

pub const QUEUED_JOB_COUNT: &'static str = "queued-job-count"

source

pub const URI_AUTHENTICATION_SUPPORTED: &'static str = "uri-authentication-supported"

source

pub const URI_SECURITY_SUPPORTED: &'static str = "uri-security-supported"

source

pub const JOB_ID: &'static str = "job-id"

source

pub const JOB_NAME: &'static str = "job-name"

source

pub const JOB_STATE: &'static str = "job-state"

source

pub const JOB_STATE_REASONS: &'static str = "job-state-reasons"

source

pub const JOB_URI: &'static str = "job-uri"

source

pub const LAST_DOCUMENT: &'static str = "last-document"

source

pub const REQUESTING_USER_NAME: &'static str = "requesting-user-name"

source

pub const STATUS_MESSAGE: &'static str = "status-message"

source

pub const REQUESTED_ATTRIBUTES: &'static str = "requested-attributes"

source

pub const SIDES_SUPPORTED: &'static str = "sides-supported"

source

pub const OUTPUT_MODE_SUPPORTED: &'static str = "output-mode-supported"

source

pub const COLOR_SUPPORTED: &'static str = "color-supported"

source

pub const PRINTER_INFO: &'static str = "printer-info"

source

pub const PRINTER_LOCATION: &'static str = "printer-location"

source

pub const PRINTER_MORE_INFO: &'static str = "printer-more-info"

source

pub const PRINTER_RESOLUTION_DEFAULT: &'static str = "printer-resolution-default"

source

pub const PRINTER_RESOLUTION_SUPPORTED: &'static str = "printer-resolution-supported"

source

pub const COPIES_SUPPORTED: &'static str = "copies-supported"

source

pub const COPIES_DEFAULT: &'static str = "copies-default"

source

pub const SIDES_DEFAULT: &'static str = "sides-default"

source

pub const PRINT_QUALITY_DEFAULT: &'static str = "print-quality-default"

source

pub const PRINT_QUALITY_SUPPORTED: &'static str = "print-quality-supported"

source

pub const FINISHINGS_DEFAULT: &'static str = "finishings-default"

source

pub const FINISHINGS_SUPPORTED: &'static str = "finishings-supported"

source

pub const OUTPUT_BIN_DEFAULT: &'static str = "output-bin-default"

source

pub const OUTPUT_BIN_SUPPORTED: &'static str = "output-bin-supported"

source

pub const ORIENTATION_REQUESTED_DEFAULT: &'static str = "orientation-requested-default"

source

pub const ORIENTATION_REQUESTED_SUPPORTED: &'static str = "orientation-requested-supported"

source

pub const MEDIA_DEFAULT: &'static str = "media-default"

source

pub const MEDIA_SUPPORTED: &'static str = "media-supported"

source

pub const PAGES_PER_MINUTE: &'static str = "pages-per-minute"

source

pub const COLOR_MODE_SUPPORTED: &'static str = "color-mode-supported"

source

pub const PRINT_COLOR_MODE_SUPPORTED: &'static str = "print-color-mode-supported"

source

pub const PRINT_COLOR_MODE_DEFAULT: &'static str = "print-color-mode-default"

source

pub const MULTIPLE_DOCUMENT_HANDLING_SUPPORTED: &'static str = "multiple-document-handling-supported"

source

pub const MEDIA_SOURCE_SUPPORTED: &'static str = "media-source-supported"

source

pub fn new<S>(name: S, value: IppValue) -> IppAttributewhere S: AsRef<str>,

Create new instance of the attribute

  • name - Attribute name
  • value - Attribute value
source

pub fn name(&self) -> &str

Return attribute name

source

pub fn value(&self) -> &IppValue

Return attribute value

source

pub fn into_value(self) -> IppValue

Consume this attribute and return the value

source

pub fn to_bytes(&self) -> Bytes

Write attribute to byte array

Trait Implementations§

source§

impl Clone for IppAttribute

source§

fn clone(&self) -> IppAttribute

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for IppAttribute

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more