pub struct CreateNodeRequest {
pub kind: NodeKindKey,
pub pos: CanvasPoint,
}Expand description
Canvas-space request for creating one node from a registered schema.
Fields§
§kind: NodeKindKeyNode kind or alias selected by the adapter palette.
pos: CanvasPointTop-left position in canvas space.
Implementations§
Source§impl CreateNodeRequest
impl CreateNodeRequest
pub fn new(kind: NodeKindKey, pos: CanvasPoint) -> Self
Trait Implementations§
Source§impl Clone for CreateNodeRequest
impl Clone for CreateNodeRequest
Source§fn clone(&self) -> CreateNodeRequest
fn clone(&self) -> CreateNodeRequest
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 CreateNodeRequest
impl Debug for CreateNodeRequest
Source§impl<'de> Deserialize<'de> for CreateNodeRequest
impl<'de> Deserialize<'de> for CreateNodeRequest
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 CreateNodeRequest
impl PartialEq for CreateNodeRequest
Source§fn eq(&self, other: &CreateNodeRequest) -> bool
fn eq(&self, other: &CreateNodeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateNodeRequest
impl Serialize for CreateNodeRequest
impl StructuralPartialEq for CreateNodeRequest
Auto Trait Implementations§
impl Freeze for CreateNodeRequest
impl RefUnwindSafe for CreateNodeRequest
impl Send for CreateNodeRequest
impl Sync for CreateNodeRequest
impl Unpin for CreateNodeRequest
impl UnsafeUnpin for CreateNodeRequest
impl UnwindSafe for CreateNodeRequest
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