pub struct OfdField {
pub name: &'static str,
pub position: (f64, f64),
pub font: &'static str,
pub size: f64,
pub weight: u32,
pub italic: bool,
pub color: u32,
pub kind: OfdFieldKind,
}Expand description
Metadata about a column/field in an OFD model, used for declarative mapping.
Fields§
§name: &'static strField name (Rust field name).
position: (f64, f64)Display position (x, y) in mm.
font: &'static strFont family.
size: f64Font size in pt.
weight: u32Font weight (400 = normal, 700 = bold).
italic: boolWhether italic.
color: u32Text color as RGB hex.
kind: OfdFieldKindField kind for rendering.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OfdField
impl RefUnwindSafe for OfdField
impl Send for OfdField
impl Sync for OfdField
impl Unpin for OfdField
impl UnsafeUnpin for OfdField
impl UnwindSafe for OfdField
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