pub struct RawOption {
pub option_name: String,
pub group_name: String,
pub default_value: String,
pub num_supported: i32,
pub supported_values: Vec<(String,)>,
}Available on crate feature
zbus-backend only.Expand description
A printer option from GetAllOptions. D-Bus signature: (sssia(s)).
Fields§
§option_name: StringThe option name (e.g. "sides", "copies").
group_name: StringThe option group name (e.g. "General").
default_value: StringThe default value string.
num_supported: i32Number of supported values.
supported_values: Vec<(String,)>The list of supported values as 1-tuples (D-Bus encoding).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawOption
impl<'de> Deserialize<'de> for RawOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RawOption
impl RefUnwindSafe for RawOption
impl Send for RawOption
impl Sync for RawOption
impl Unpin for RawOption
impl UnsafeUnpin for RawOption
impl UnwindSafe for RawOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.