Struct indradb::Vertex [] [src]

pub struct Vertex {
    pub id: Uuid,
    pub t: Type,
}

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

The id of the vertex.

The type of the vertex.

Methods

impl Vertex
[src]

[src]

Creates a new vertex.

Arguments

  • id - The id of the vertex.
  • t - The type of the vertex.

Trait Implementations

impl Clone for Vertex
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Vertex
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Vertex
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Vertex
[src]