pub struct EdgeTypeModel {
pub alias: Option<String>,
pub identifying_label: String,
pub properties: Vec<PropertyTypeModel>,
pub source: ElementRefModel,
pub target: ElementRefModel,
}Expand description
Persisted form of GraphTypeEdgeTypeSpec.
Fields§
§alias: Option<String>§identifying_label: String§properties: Vec<PropertyTypeModel>§source: ElementRefModel§target: ElementRefModelImplementations§
Source§impl EdgeTypeModel
impl EdgeTypeModel
Sourcepub fn capture(s: &GraphTypeEdgeTypeSpec) -> Result<Self, EngineError>
pub fn capture(s: &GraphTypeEdgeTypeSpec) -> Result<Self, EngineError>
Captures one parsed edge 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 EdgeTypeModel
impl Clone for EdgeTypeModel
Source§impl Debug for EdgeTypeModel
impl Debug for EdgeTypeModel
Source§impl<'de> Deserialize<'de> for EdgeTypeModel
impl<'de> Deserialize<'de> for EdgeTypeModel
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<&EdgeTypeModel> for GraphTypeEdgeTypeSpec
impl From<&EdgeTypeModel> for GraphTypeEdgeTypeSpec
Source§fn from(m: &EdgeTypeModel) -> Self
fn from(m: &EdgeTypeModel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EdgeTypeModel
impl PartialEq for EdgeTypeModel
Source§impl Serialize for EdgeTypeModel
impl Serialize for EdgeTypeModel
impl StructuralPartialEq for EdgeTypeModel
Auto Trait Implementations§
impl Forget for EdgeTypeModel
impl Freeze for EdgeTypeModel
impl Move for EdgeTypeModel
impl RefUnwindSafe for EdgeTypeModel
impl Send for EdgeTypeModel
impl Sync for EdgeTypeModel
impl Unpin for EdgeTypeModel
impl UnsafeUnpin for EdgeTypeModel
impl UnwindSafe for EdgeTypeModel
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