pub enum Element {
Node {
metadata: ElementMetadata,
properties: ElementPropertyMap,
},
Relation {
metadata: ElementMetadata,
in_node: ElementReference,
out_node: ElementReference,
properties: ElementPropertyMap,
},
}Variants§
Node
Relation
Fields
§
metadata: ElementMetadata§
in_node: ElementReference§
out_node: ElementReference§
properties: ElementPropertyMapImplementations§
Source§impl Element
impl Element
pub fn get_reference(&self) -> &ElementReference
pub fn get_effective_from(&self) -> ElementTimestamp
pub fn get_metadata(&self) -> &ElementMetadata
pub fn get_property(&self, name: &str) -> &ElementValue
pub fn get_properties(&self) -> &ElementPropertyMap
pub fn merge_missing_properties(&mut self, other: &Element)
pub fn to_expression_variable(&self) -> VariableValue
pub fn update_effective_time(&mut self, timestamp: ElementTimestamp)
Trait Implementations§
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.