pub struct CanvasElement {
pub id: String,
pub element_type: ElementType,
pub layer_id: String,
pub z_index: i32,
pub opacity: f32,
pub transform: Option<Transform>,
pub created_by: String,
pub created_at: i64,
}Expand description
A canvas element with metadata.
Fields§
§id: StringUnique element identifier.
element_type: ElementTypeElement type and data.
layer_id: StringLayer this element belongs to.
z_index: i32Z-order within the layer.
opacity: f32Element opacity (0.0 to 1.0).
transform: Option<Transform>Optional transform applied to the element.
created_by: StringUser ID of the creator.
created_at: i64Creation timestamp (Unix epoch ms).
Trait Implementations§
Source§impl Clone for CanvasElement
impl Clone for CanvasElement
Source§fn clone(&self) -> CanvasElement
fn clone(&self) -> CanvasElement
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 moreSource§impl Debug for CanvasElement
impl Debug for CanvasElement
Source§impl<'de> Deserialize<'de> for CanvasElement
impl<'de> Deserialize<'de> for CanvasElement
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 CanvasElement
impl PartialEq for CanvasElement
Source§impl Serialize for CanvasElement
impl Serialize for CanvasElement
impl StructuralPartialEq for CanvasElement
Auto Trait Implementations§
impl Freeze for CanvasElement
impl RefUnwindSafe for CanvasElement
impl Send for CanvasElement
impl Sync for CanvasElement
impl Unpin for CanvasElement
impl UnsafeUnpin for CanvasElement
impl UnwindSafe for CanvasElement
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