pub struct GraphNodeModel {
pub label: String,
pub properties: Vec<GraphPropertyDef>,
}Expand description
图节点模型(声明式建模)
Fields§
§label: String§properties: Vec<GraphPropertyDef>Implementations§
Source§impl GraphNodeModel
impl GraphNodeModel
pub fn new(label: &str) -> Self
pub fn property(self, name: &str, value_type: GraphValueType) -> Self
Sourcepub fn match_clause(&self, alias: &str) -> String
pub fn match_clause(&self, alias: &str) -> String
生成 MATCH 子句
Sourcepub fn create_clause(&self, alias: &str) -> String
pub fn create_clause(&self, alias: &str) -> String
生成 CREATE 子句
Trait Implementations§
Source§impl Clone for GraphNodeModel
impl Clone for GraphNodeModel
Source§fn clone(&self) -> GraphNodeModel
fn clone(&self) -> GraphNodeModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GraphNodeModel
impl RefUnwindSafe for GraphNodeModel
impl Send for GraphNodeModel
impl Sync for GraphNodeModel
impl Unpin for GraphNodeModel
impl UnsafeUnpin for GraphNodeModel
impl UnwindSafe for GraphNodeModel
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