pub struct RawMedia {
pub name: String,
pub width: i32,
pub length: i32,
pub num_margins: i32,
pub margins: Vec<RawMargin>,
}Available on crate feature
zbus-backend only.Expand description
A supported paper size from GetAllOptions. D-Bus signature: (siiia(iiii)).
Width and length are in hundredths of a millimetre.
Fields§
§name: StringThe media name (e.g. "iso_a4_210x297mm").
width: i32Width in hundredths of a mm.
length: i32Length in hundredths of a mm.
num_margins: i32Number of margin entries.
margins: Vec<RawMargin>Available margin configurations.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawMedia
impl<'de> Deserialize<'de> for RawMedia
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 RawMedia
impl RefUnwindSafe for RawMedia
impl Send for RawMedia
impl Sync for RawMedia
impl Unpin for RawMedia
impl UnsafeUnpin for RawMedia
impl UnwindSafe for RawMedia
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.