pub struct NodeType {
pub name: String,
pub implements: Vec<String>,
pub properties: HashMap<String, PropType>,
pub key: Option<Vec<String>>,
pub unique_constraints: Vec<Vec<String>>,
pub indices: Vec<Vec<String>>,
pub range_constraints: Vec<RangeConstraint>,
pub check_constraints: Vec<CheckConstraint>,
pub embed_sources: HashMap<String, String>,
pub blob_properties: HashSet<String>,
pub arrow_schema: SchemaRef,
}Fields§
§name: String§implements: Vec<String>Interface names this type implements
properties: HashMap<String, PropType>§key: Option<Vec<String>>Key property names (from @key or @key(name)). Usually 0 or 1 element.
unique_constraints: Vec<Vec<String>>Uniqueness constraints (each entry is a list of column names)
indices: Vec<Vec<String>>Index declarations (each entry is a list of column names)
range_constraints: Vec<RangeConstraint>Value range constraints
check_constraints: Vec<CheckConstraint>Regex check constraints
embed_sources: HashMap<String, String>Maps @embed target property -> source text property
blob_properties: HashSet<String>§arrow_schema: SchemaRefImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnsafeUnpin for NodeType
impl UnwindSafe for NodeType
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