pub struct RelVal { /* private fields */ }
Expand description
RelVal represents a relationship in the graph and stores the relID, src/dst nodes and properties of that rel
Implementations§
source§impl RelVal
impl RelVal
pub fn new<I: Into<InternalID>, S: Into<String>>( src_node: I, dst_node: I, label: S ) -> Self
pub fn get_src_node(&self) -> &InternalID
pub fn get_dst_node(&self) -> &InternalID
pub fn get_label_name(&self) -> &String
sourcepub fn add_property(&mut self, key: String, value: Value)
pub fn add_property(&mut self, key: String, value: Value)
Adds a property with the given key/value pair to the NodeVal
§Arguments
key
: The name of the propertyvalue
: The value of the property
sourcepub fn get_properties(&self) -> &Vec<(String, Value)>
pub fn get_properties(&self) -> &Vec<(String, Value)>
Returns all properties of the RelVal
Trait Implementations§
source§impl PartialEq for RelVal
impl PartialEq for RelVal
impl StructuralPartialEq for RelVal
Auto Trait Implementations§
impl Freeze for RelVal
impl RefUnwindSafe for RelVal
impl Send for RelVal
impl Sync for RelVal
impl Unpin for RelVal
impl UnwindSafe for RelVal
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