pub struct SlideElement {
pub id: String,
pub slide_id: String,
pub element_type: String,
pub content: HashMap<String, Value>,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub rotation: f64,
pub z_index: i32,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
}Expand description
SlideElement : One canvas object on a slide — text box, shape, image, etc. content is renderer-specific JSON (e.g. fabric.js properties: text, fill, fontSize, src). Identified by a stable id so MCP / agent operations stay idempotent across retries.
Fields§
§id: String§slide_id: String§element_type: StringFree-form type id (text, image, shape, etc.).
content: HashMap<String, Value>§x: f64§y: f64§width: f64§height: f64§rotation: f64Degrees.
z_index: i32§created_at: DateTime<FixedOffset>§updated_at: DateTime<FixedOffset>Implementations§
Source§impl SlideElement
impl SlideElement
Sourcepub fn new(
id: String,
slide_id: String,
element_type: String,
content: HashMap<String, Value>,
x: f64,
y: f64,
width: f64,
height: f64,
rotation: f64,
z_index: i32,
created_at: DateTime<FixedOffset>,
updated_at: DateTime<FixedOffset>,
) -> SlideElement
pub fn new( id: String, slide_id: String, element_type: String, content: HashMap<String, Value>, x: f64, y: f64, width: f64, height: f64, rotation: f64, z_index: i32, created_at: DateTime<FixedOffset>, updated_at: DateTime<FixedOffset>, ) -> SlideElement
One canvas object on a slide — text box, shape, image, etc. content is renderer-specific JSON (e.g. fabric.js properties: text, fill, fontSize, src). Identified by a stable id so MCP / agent operations stay idempotent across retries.
Trait Implementations§
Source§impl Clone for SlideElement
impl Clone for SlideElement
Source§fn clone(&self) -> SlideElement
fn clone(&self) -> SlideElement
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 SlideElement
impl Debug for SlideElement
Source§impl Default for SlideElement
impl Default for SlideElement
Source§fn default() -> SlideElement
fn default() -> SlideElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlideElement
impl<'de> Deserialize<'de> for SlideElement
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 PartialEq for SlideElement
impl PartialEq for SlideElement
Source§fn eq(&self, other: &SlideElement) -> bool
fn eq(&self, other: &SlideElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SlideElement
impl Serialize for SlideElement
impl StructuralPartialEq for SlideElement
Auto Trait Implementations§
impl Freeze for SlideElement
impl RefUnwindSafe for SlideElement
impl Send for SlideElement
impl Sync for SlideElement
impl Unpin for SlideElement
impl UnsafeUnpin for SlideElement
impl UnwindSafe for SlideElement
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