[−][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.
Implementations
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]
impl Debug for Vertex
[src]
impl Eq for Vertex
[src]
impl Hash for Vertex
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Vertex> for Vertex
[src]
Auto Trait Implementations
impl RefUnwindSafe for Vertex
[src]
impl Send for Vertex
[src]
impl Sync for Vertex
[src]
impl Unpin for Vertex
[src]
impl UnwindSafe for Vertex
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,