pub enum MarginSetting {
One(String),
Quad(Vec<String>),
Sides {
top: Option<String>,
right: Option<String>,
bottom: Option<String>,
left: Option<String>,
},
}Variants§
One(String)
“1em”
Quad(Vec<String>)
[“top”, “right”, “bottom”, “left”] — supports 1–4 entries like CSS shorthand
Sides
{ top = “…”, right = “…”, bottom = “…”, left = “…” }
Trait Implementations§
Source§impl Debug for MarginSetting
impl Debug for MarginSetting
Source§impl Default for MarginSetting
impl Default for MarginSetting
Source§impl<'de> Deserialize<'de> for MarginSetting
impl<'de> Deserialize<'de> for MarginSetting
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 MarginSetting
impl RefUnwindSafe for MarginSetting
impl Send for MarginSetting
impl Sync for MarginSetting
impl Unpin for MarginSetting
impl UnwindSafe for MarginSetting
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