pub struct CanvasNode {
pub id: String,
pub node_type: String,
pub text: Option<String>,
pub file: Option<String>,
pub url: Option<String>,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Expand description
A node on an Obsidian canvas.
Fields§
§id: StringNode id (canvas-local).
node_type: StringNode type: text, file, link, group.
text: Option<String>Text content for text nodes.
file: Option<String>File path for file nodes.
url: Option<String>URL for link nodes.
x: f64X position.
y: f64Y position.
width: f64Width.
height: f64Height.
Trait Implementations§
Source§impl Clone for CanvasNode
impl Clone for CanvasNode
Source§fn clone(&self) -> CanvasNode
fn clone(&self) -> CanvasNode
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 CanvasNode
impl Debug for CanvasNode
Source§impl<'de> Deserialize<'de> for CanvasNode
impl<'de> Deserialize<'de> for CanvasNode
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
Auto Trait Implementations§
impl Freeze for CanvasNode
impl RefUnwindSafe for CanvasNode
impl Send for CanvasNode
impl Sync for CanvasNode
impl Unpin for CanvasNode
impl UnsafeUnpin for CanvasNode
impl UnwindSafe for CanvasNode
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