pub struct AddShapeInput {
pub workbook_id: String,
pub sheet_name: String,
pub cell: String,
pub shape_type: ShapeKind,
pub width: u32,
pub height: u32,
pub text: Option<String>,
pub fill_color: Option<String>,
pub outline_color: Option<String>,
pub outline_width: Option<f64>,
pub font_size: Option<f64>,
pub bold: Option<bool>,
}Expand description
Input for adding a drawing shape to a worksheet
Fields§
§workbook_id: String§sheet_name: String§cell: StringAnchor cell (e.g. “B2”)
shape_type: ShapeKindShape type: rectangle, rounded_rectangle, ellipse, triangle, diamond, arrow, callout, text_box
width: u32Width in pixels
height: u32Height in pixels
text: Option<String>Optional text body for the shape
fill_color: Option<String>Fill color as hex (e.g. “#FF0000”)
outline_color: Option<String>Outline color as hex (e.g. “#000000”)
outline_width: Option<f64>Outline width in points
font_size: Option<f64>Font size for the text body
bold: Option<bool>Whether the text should be bold
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddShapeInput
impl<'de> Deserialize<'de> for AddShapeInput
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 JsonSchema for AddShapeInput
impl JsonSchema for AddShapeInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AddShapeInput
impl RefUnwindSafe for AddShapeInput
impl Send for AddShapeInput
impl Sync for AddShapeInput
impl Unpin for AddShapeInput
impl UnsafeUnpin for AddShapeInput
impl UnwindSafe for AddShapeInput
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