pub struct GraphTypeConstraintModel {
pub name: Option<String>,
pub target: ElementRefModel,
pub is_edge: bool,
pub properties: Vec<String>,
pub kind: ConstraintVerbModel,
pub property_type: Option<ValueTypeModel>,
pub options: Vec<(String, OptionValueModel)>,
}Expand description
Persisted form of GraphTypeConstraintSpec.
Fields§
§name: Option<String>§target: ElementRefModel§is_edge: bool§properties: Vec<String>§kind: ConstraintVerbModel§property_type: Option<ValueTypeModel>§options: Vec<(String, OptionValueModel)>The constraint’s literal OPTIONS entries. A whole-map OPTIONS $param is resolved before capture, so the persisted model keeps the
literal vocabulary only (a value outside it is
OptionValueModel::NonLiteral).
Trait Implementations§
Source§impl Clone for GraphTypeConstraintModel
impl Clone for GraphTypeConstraintModel
Source§impl Debug for GraphTypeConstraintModel
impl Debug for GraphTypeConstraintModel
Source§impl<'de> Deserialize<'de> for GraphTypeConstraintModel
impl<'de> Deserialize<'de> for GraphTypeConstraintModel
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<&GraphTypeConstraintModel> for GraphTypeConstraintSpec
impl From<&GraphTypeConstraintModel> for GraphTypeConstraintSpec
Source§fn from(m: &GraphTypeConstraintModel) -> Self
fn from(m: &GraphTypeConstraintModel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphTypeConstraintModel
impl PartialEq for GraphTypeConstraintModel
Source§impl Serialize for GraphTypeConstraintModel
impl Serialize for GraphTypeConstraintModel
impl StructuralPartialEq for GraphTypeConstraintModel
Auto Trait Implementations§
impl Forget for GraphTypeConstraintModel
impl Freeze for GraphTypeConstraintModel
impl Move for GraphTypeConstraintModel
impl RefUnwindSafe for GraphTypeConstraintModel
impl Send for GraphTypeConstraintModel
impl Sync for GraphTypeConstraintModel
impl Unpin for GraphTypeConstraintModel
impl UnsafeUnpin for GraphTypeConstraintModel
impl UnwindSafe for GraphTypeConstraintModel
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