pub struct ShapeConfig {
pub shape_type: ShapeType,
pub from_cell: String,
pub to_cell: String,
pub text: Option<String>,
pub fill_color: Option<String>,
pub line_color: Option<String>,
pub line_width: Option<f64>,
}Expand description
Configuration for inserting a shape into a worksheet.
Fields§
§shape_type: ShapeTypePreset geometry shape type.
from_cell: StringTop-left anchor cell (e.g., "B2").
to_cell: StringBottom-right anchor cell (e.g., "F10").
text: Option<String>Optional text content displayed inside the shape.
fill_color: Option<String>Optional fill color as a hex string (e.g., "4472C4").
line_color: Option<String>Optional line/border color as a hex string (e.g., "2F528F").
line_width: Option<f64>Optional line width in points. Converted to EMU internally.
Trait Implementations§
Source§impl Clone for ShapeConfig
impl Clone for ShapeConfig
Source§fn clone(&self) -> ShapeConfig
fn clone(&self) -> ShapeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShapeConfig
impl RefUnwindSafe for ShapeConfig
impl Send for ShapeConfig
impl Sync for ShapeConfig
impl Unpin for ShapeConfig
impl UnwindSafe for ShapeConfig
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