pub struct Node {
pub id: Reference,
pub node_type: NodeType,
pub next_node: Reference,
pub input_links: Vec<Link>,
pub x: Scalar,
pub y: Scalar,
}
Fields§
§id: Reference
§node_type: NodeType
§next_node: Reference
§input_links: Vec<Link>
§x: Scalar
§y: Scalar
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Prefab for Node
impl Prefab for Node
fn from_prefab(data: Value) -> Result<Self, PrefabError>
fn from_prefab_with_extras( data: Value, _named_entities: &HashMap<String, Entity>, _state_token: ID<PhantomData<dyn State + Send + Sync>>, ) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
fn to_prefab_string(&self) -> Result<String, PrefabError>
fn post_from_prefab(&mut self)
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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