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
key: EdgeKey
The key to the edge.
created_datetime: DateTime<Utc>
When the edge was created.
Methods
impl Edge
[src]
fn new_with_current_datetime(key: EdgeKey) -> Edge
[src]
fn new(key: EdgeKey, created_datetime: DateTime<Utc>) -> 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]
fn clone(&self) -> Edge
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more