pub struct GraphPropertyDef {
pub name: String,
pub value_type: GraphValueType,
pub nullable: bool,
pub default: Option<Value>,
}Expand description
图属性定义
Fields§
§name: String§value_type: GraphValueType§nullable: bool§default: Option<Value>Implementations§
Source§impl GraphPropertyDef
impl GraphPropertyDef
pub fn new(name: &str, value_type: GraphValueType) -> Self
pub fn nullable(self) -> Self
pub fn with_default(self, value: Value) -> Self
Trait Implementations§
Source§impl Clone for GraphPropertyDef
impl Clone for GraphPropertyDef
Source§fn clone(&self) -> GraphPropertyDef
fn clone(&self) -> GraphPropertyDef
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 GraphPropertyDef
impl RefUnwindSafe for GraphPropertyDef
impl Send for GraphPropertyDef
impl Sync for GraphPropertyDef
impl Unpin for GraphPropertyDef
impl UnsafeUnpin for GraphPropertyDef
impl UnwindSafe for GraphPropertyDef
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