pub struct DbElement {
pub id: DbId,
pub from: Option<DbId>,
pub to: Option<DbId>,
pub values: Vec<DbKeyValue>,
}Expand description
Database element used in [QueryResult]
that represents a node or an edge.
Fields§
§id: DbIdElement id.
from: Option<DbId>Origin node id.
to: Option<DbId>Destination node id.
values: Vec<DbKeyValue>List of key-value pairs associated with the element.
Trait Implementations§
source§impl Ord for DbElement
impl Ord for DbElement
source§impl PartialEq for DbElement
impl PartialEq for DbElement
source§impl PartialOrd for DbElement
impl PartialOrd for DbElement
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for DbElement
impl StructuralPartialEq for DbElement
Auto Trait Implementations§
impl RefUnwindSafe for DbElement
impl Send for DbElement
impl Sync for DbElement
impl Unpin for DbElement
impl UnwindSafe for DbElement
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