pub struct NodeTypeUpdate {
pub add_properties: BTreeMap<String, PropertyDef>,
pub relax_properties: Vec<String>,
pub add_subtypes: BTreeMap<String, SubtypeDef>,
}Expand description
Additive update to an existing node type.
Fields§
§add_properties: BTreeMap<String, PropertyDef>New optional properties to add.
relax_properties: Vec<String>Properties to relax from required to optional.
add_subtypes: BTreeMap<String, SubtypeDef>New subtypes to add.
Trait Implementations§
Source§impl Clone for NodeTypeUpdate
impl Clone for NodeTypeUpdate
Source§fn clone(&self) -> NodeTypeUpdate
fn clone(&self) -> NodeTypeUpdate
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 NodeTypeUpdate
impl Debug for NodeTypeUpdate
Source§impl<'de> Deserialize<'de> for NodeTypeUpdate
impl<'de> Deserialize<'de> for NodeTypeUpdate
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 NodeTypeUpdate
impl PartialEq for NodeTypeUpdate
Source§impl Serialize for NodeTypeUpdate
impl Serialize for NodeTypeUpdate
impl StructuralPartialEq for NodeTypeUpdate
Auto Trait Implementations§
impl Freeze for NodeTypeUpdate
impl RefUnwindSafe for NodeTypeUpdate
impl Send for NodeTypeUpdate
impl Sync for NodeTypeUpdate
impl Unpin for NodeTypeUpdate
impl UnsafeUnpin for NodeTypeUpdate
impl UnwindSafe for NodeTypeUpdate
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