pub struct NodeTypeModel {
pub alias: Option<String>,
pub identifying_label: String,
pub implied_labels: Vec<String>,
pub properties: Vec<PropertyTypeModel>,
}Expand description
Persisted form of GraphTypeNodeTypeSpec.
Fields§
§alias: Option<String>§identifying_label: String§implied_labels: Vec<String>§properties: Vec<PropertyTypeModel>Implementations§
Source§impl NodeTypeModel
impl NodeTypeModel
Sourcepub fn capture(s: &GraphTypeNodeTypeSpec) -> Result<Self, EngineError>
pub fn capture(s: &GraphTypeNodeTypeSpec) -> Result<Self, EngineError>
Captures one parsed node type specification, fail-closed on a property default value whose expression is not a CIP-262 allowed shape (the same shape the body validator rejects).
Trait Implementations§
Source§impl Clone for NodeTypeModel
impl Clone for NodeTypeModel
Source§impl Debug for NodeTypeModel
impl Debug for NodeTypeModel
Source§impl<'de> Deserialize<'de> for NodeTypeModel
impl<'de> Deserialize<'de> for NodeTypeModel
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 From<&NodeTypeModel> for GraphTypeNodeTypeSpec
impl From<&NodeTypeModel> for GraphTypeNodeTypeSpec
Source§fn from(m: &NodeTypeModel) -> Self
fn from(m: &NodeTypeModel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NodeTypeModel
impl PartialEq for NodeTypeModel
Source§impl Serialize for NodeTypeModel
impl Serialize for NodeTypeModel
impl StructuralPartialEq for NodeTypeModel
Auto Trait Implementations§
impl Forget for NodeTypeModel
impl Freeze for NodeTypeModelwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<PropertyTypeModel>: Freeze,
impl Move for NodeTypeModel
impl RefUnwindSafe for NodeTypeModel
impl Send for NodeTypeModel
impl Sync for NodeTypeModel
impl Unpin for NodeTypeModel
impl UnsafeUnpin for NodeTypeModelwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PropertyTypeModel>: UnsafeUnpin,
impl UnwindSafe for NodeTypeModel
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