Enum vega_lite_4::Padding
source · pub enum Padding {
Double(f64),
MagentaExprRef(MagentaExprRef),
}
Expand description
The default visualization padding, in pixels, from the edge of the visualization canvas
to the data rectangle. If a number, specifies padding for all sides. If an object, the
value should have the format {"left": 5, "top": 5, "right": 5, "bottom": 5}
to specify
padding for each side of the visualization.
Default value: 5
Variants§
Double(f64)
MagentaExprRef(MagentaExprRef)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Padding
impl<'de> Deserialize<'de> for Padding
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
source§impl From<MagentaExprRef> for Padding
impl From<MagentaExprRef> for Padding
source§fn from(original: MagentaExprRef) -> Padding
fn from(original: MagentaExprRef) -> Padding
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Padding
impl Send for Padding
impl Sync for Padding
impl Unpin for Padding
impl UnwindSafe for Padding
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