Expand description
A vertex.
Vertices are how you would represent nouns in the datastore. An example might be a user, or a movie. All vertices have a unique ID and a type.
Fields
id: Uuid
The id of the vertex.
t: Type
The type of the vertex.
Implementations
sourceimpl Vertex
impl Vertex
sourcepub fn new(t: Type) -> Self
pub fn new(t: Type) -> Self
Creates a new vertex with an ID generated via UUIDv1. These vertex IDs are trivially guessable and consequently less secure, but likely index better depending on the datastore. This method is suggested unless you need vertex IDs to not be trivially guessable.
Arguments
t
- The type of the vertex.
Trait Implementations
impl Eq for Vertex
Auto Trait Implementations
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more