pub struct OptionInfo {
pub name: String,
pub default_value: String,
pub group: String,
pub supported_values: Vec<String>,
}Expand description
A single printer option with its supported choices.
Fields§
§name: StringThe option name, e.g. "copies" or "sides".
default_value: StringThe default value as reported by the backend.
group: StringThe option group (e.g. "General"), or an empty string when unset.
supported_values: Vec<String>All values the printer supports for this option.
Trait Implementations§
Source§impl Clone for OptionInfo
impl Clone for OptionInfo
Source§fn clone(&self) -> OptionInfo
fn clone(&self) -> OptionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptionInfo
impl Debug for OptionInfo
impl Eq for OptionInfo
Source§impl PartialEq for OptionInfo
impl PartialEq for OptionInfo
Source§fn eq(&self, other: &OptionInfo) -> bool
fn eq(&self, other: &OptionInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionInfo
Auto Trait Implementations§
impl Freeze for OptionInfo
impl RefUnwindSafe for OptionInfo
impl Send for OptionInfo
impl Sync for OptionInfo
impl Unpin for OptionInfo
impl UnsafeUnpin for OptionInfo
impl UnwindSafe for OptionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more