Skip to main content

IppAttribute

Struct 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 COLOR_MODE_SUPPORTED: &'static str = "color-mode-supported"

Source

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

Source

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

Source

pub const COPIES: &'static str = "copies"

Source

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

Source

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

Source

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

Source

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

Source

pub const DOCUMENT_FORMAT_PREFERRED: &'static str = "document-format-preferred"

Source

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

Source

pub const FINISHINGS: &'static str = "finishings"

Source

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

Source

pub const FINISHINGS_SUPPORTED: &'static str = "finishings-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 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 MEDIA_COL: &'static str = "media-col"

Source

pub const MEDIA_COL_DATABASE: &'static str = "media-col-database"

Source

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

Source

pub const MEDIA_COL_READY: &'static str = "media-col-ready"

Source

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

Source

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

Source

pub const MEDIA_READY: &'static str = "media-ready"

Source

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

Source

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

Source

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

Source

pub const MOPRIA_CERTIFIED: &'static str = "mopria-certified"

Source

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

Source

pub const MULTIPLE_DOCUMENT_HANDLING_DEFAULT: &'static str = "multiple-document-handling-default"

Source

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

Source

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

Source

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

Source

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

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 OUTPUT_BIN: &'static str = "output-bin"

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 OUTPUT_MODE_SUPPORTED: &'static str = "output-mode-supported"

Source

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

Source

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

Source

pub const PRINTER_DEVICE_ID: &'static str = "printer-device-id"

Source

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

Source

pub const PRINTER_FIRMWARE_STRING_VERSION: &'static str = "printer-firmware-string-version"

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

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 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 PRINTER_UUID: &'static str = "printer-uuid"

Source

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

Source

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

Source

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

Source

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

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 QUEUED_JOB_COUNT: &'static str = "queued-job-count"

Source

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

Source

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

Source

pub const SIDES: &'static str = "sides"

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn new(name: IppName, value: IppValue) -> IppAttribute

Create a new instance of the attribute

  • name - Attribute name
  • value - Attribute value
Source

pub fn with_name<S>( name: S, value: IppValue, ) -> Result<IppAttribute, IppParseError>
where S: AsRef<str>,

Create a new instance of the attribute

  • name - Attribute name
  • value - Attribute value
Source

pub fn name(&self) -> &IppName

Return the attribute name

Source

pub fn value(&self) -> &IppValue

Return the attribute value

Source

pub fn into_value(self) -> IppValue

Consume this attribute and return the value

Source

pub fn to_bytes(&self) -> Bytes

Write the attribute to a byte array

Trait Implementations§

Source§

impl Clone for IppAttribute

Source§

fn clone(&self) -> IppAttribute

Returns a duplicate 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
Source§

impl<'de> Deserialize<'de> for IppAttribute

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for IppAttribute

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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 T
where 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,