[−][src]Struct indradb::Vertex
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.
Methods
impl Vertex
[src]
pub fn new(t: Type) -> Self
[src]
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.
pub fn with_id(id: Uuid, t: Type) -> Self
[src]
Creates a new vertex with a specified id.
Arguments
id
- The id of the vertex.t
- The type of the vertex.
Trait Implementations
impl Clone for Vertex
[src]
fn clone(&self) -> Vertex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Vertex> for Vertex
[src]
fn eq(&self, other: &Vertex) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Vertex
[src]
impl Debug for Vertex
[src]
impl Hash for Vertex
[src]
Auto Trait Implementations
impl Sync for Vertex
impl Send for Vertex
impl Unpin for Vertex
impl RefUnwindSafe for Vertex
impl UnwindSafe for Vertex
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,