pub struct VariantOverride {
pub node: String,
pub visible: Option<bool>,
pub x: Option<Dimension>,
pub y: Option<Dimension>,
pub w: Option<Dimension>,
pub h: Option<Dimension>,
pub fill: Option<PropertyValue>,
pub text: Option<String>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single per-node property override within a VariantDef.
Fields§
§node: StringThe target node id within the source page. Required.
visible: Option<bool>Override for the node’s visible property.
x: Option<Dimension>Override for the node’s left edge (x), in document pixels or points.
y: Option<Dimension>Override for the node’s top edge (y), in document pixels or points.
w: Option<Dimension>Override for the node’s width (w), in document pixels or points.
h: Option<Dimension>Override for the node’s height (h), in document pixels or points.
fill: Option<PropertyValue>Override for the node’s fill property (token ref or literal).
text: Option<String>Override for the node’s text content.
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Forward-compat: unrecognized attributes preserved with typed values + annotations.
Trait Implementations§
Source§impl Clone for VariantOverride
impl Clone for VariantOverride
Source§fn clone(&self) -> VariantOverride
fn clone(&self) -> VariantOverride
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 VariantOverride
impl Debug for VariantOverride
Source§impl PartialEq for VariantOverride
impl PartialEq for VariantOverride
Source§fn eq(&self, other: &VariantOverride) -> bool
fn eq(&self, other: &VariantOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VariantOverride
Auto Trait Implementations§
impl Freeze for VariantOverride
impl RefUnwindSafe for VariantOverride
impl Send for VariantOverride
impl Sync for VariantOverride
impl Unpin for VariantOverride
impl UnsafeUnpin for VariantOverride
impl UnwindSafe for VariantOverride
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