pub struct PlotImageOperation {
pub height_nm: JavaScriptSafeInteger,
pub image_data_b64: String,
pub image_format: String,
pub index: u32,
pub kind: String,
pub scale: f64,
pub stroke_color: Option<String>,
pub width_nm: JavaScriptSafeInteger,
pub x: JavaScriptSafeInteger,
pub y: JavaScriptSafeInteger,
}Expand description
Decoded image placement shared by worksheet and schematic producers.
JSON schema
{
"description": "Decoded image placement shared by worksheet and schematic producers.",
"type": "object",
"required": [
"height_nm",
"image_data_b64",
"image_format",
"index",
"kind",
"scale",
"width_nm",
"x",
"y"
],
"properties": {
"height_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"image_data_b64": {
"type": "string"
},
"image_format": {
"type": "string"
},
"index": {
"type": "integer",
"maximum": 4294967295.0,
"minimum": 0.0
},
"kind": {
"type": "string",
"const": "PlotImage"
},
"scale": {
"type": "number"
},
"stroke_color": {
"type": "string"
},
"width_nm": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"x": {
"$ref": "#/$defs/JavaScriptSafeInteger"
},
"y": {
"$ref": "#/$defs/JavaScriptSafeInteger"
}
},
"additionalProperties": false
}Fields§
§height_nm: JavaScriptSafeInteger§image_data_b64: String§image_format: String§index: u32§kind: String§scale: f64§stroke_color: Option<String>§width_nm: JavaScriptSafeInteger§x: JavaScriptSafeInteger§y: JavaScriptSafeIntegerTrait Implementations§
Source§impl Clone for PlotImageOperation
impl Clone for PlotImageOperation
Source§fn clone(&self) -> PlotImageOperation
fn clone(&self) -> PlotImageOperation
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 PlotImageOperation
impl Debug for PlotImageOperation
Source§impl<'de> Deserialize<'de> for PlotImageOperation
impl<'de> Deserialize<'de> for PlotImageOperation
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<PlotImageOperation> for PlotterOperation
impl From<PlotImageOperation> for PlotterOperation
Source§fn from(value: PlotImageOperation) -> Self
fn from(value: PlotImageOperation) -> Self
Converts to this type from the input type.
Source§impl From<PlotImageOperation> for SchematicSymbolOperation
impl From<PlotImageOperation> for SchematicSymbolOperation
Source§fn from(value: PlotImageOperation) -> Self
fn from(value: PlotImageOperation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlotImageOperation
impl RefUnwindSafe for PlotImageOperation
impl Send for PlotImageOperation
impl Sync for PlotImageOperation
impl Unpin for PlotImageOperation
impl UnsafeUnpin for PlotImageOperation
impl UnwindSafe for PlotImageOperation
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