pub struct VertexProperty { /* private fields */ }Expand description
§VertexProperty
§Description
A VertexProperty is similar to a Property in that it denotes a key/value pair associated with an Vertex, however it is different in the sense that it also represents an entity that it is an Element that can have properties of its own.
§TinkerPop Documentation
TinkerPop introduces the concept of a VertexProperty
Implementations§
Source§impl VertexProperty
impl VertexProperty
pub fn new<G, T, GT>(id: G, label: T, value: GT) -> VertexProperty
pub fn id(&self) -> &GID
pub fn value(&self) -> &GValue
pub fn take<T>(self) -> GremlinResult<T>where
T: FromGValue,
pub fn get<'a, T>(&'a self) -> GremlinResult<&'a T>where
T: BorrowFromGValue,
pub fn label(&self) -> &String
Trait Implementations§
Source§impl Clone for VertexProperty
impl Clone for VertexProperty
Source§fn clone(&self) -> VertexProperty
fn clone(&self) -> VertexProperty
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more