Struct indradb::Edge [] [src]

pub struct Edge {
    pub key: EdgeKey,
    pub created_datetime: DateTime<Utc>,
}

An edge.

Edges are how you would represent a verb or a relationship in the datastore. An example might be "liked" or "reviewed". Edges are typed and directed.

Fields

The key to the edge.

When the edge was created.

Methods

impl Edge
[src]

[src]

Creates a new edge with the current datetime in UTC.

Arguments

  • key - The key to the edge.

[src]

Creates a new edge with a specified datetime.

Arguments

  • key - The key to the edge.
  • created_datetime - When the edge was created.

Trait Implementations

impl Clone for Edge
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Edge
[src]

[src]

Formats the value using the given formatter.