Struct indradb::EdgeKey[][src]

pub struct EdgeKey {
    pub outbound_id: Uuid,
    pub t: Type,
    pub inbound_id: Uuid,
}

Represents a uniquely identifiable key to an edge.

Fields

outbound_id: Uuid

The id of the outbound vertex.

t: Type

The type of the edge.

inbound_id: Uuid

The id of the inbound vertex.

Implementations

impl EdgeKey[src]

pub fn new(outbound_id: Uuid, t: Type, inbound_id: Uuid) -> EdgeKey[src]

Creates a new edge key.

Arguments

  • outbound_id: The id of the outbound vertex.
  • t: The type of the edge.
  • inbound_id: The id of the inbound vertex.

pub fn reversed(&self) -> EdgeKey[src]

Produces a new edge key that is a reversed version of this one; i.e. it has the same type, but the outbound and inbound IDs are flipped.

Trait Implementations

impl Clone for EdgeKey[src]

impl Debug for EdgeKey[src]

impl<'de> Deserialize<'de> for EdgeKey[src]

impl Eq for EdgeKey[src]

impl Hash for EdgeKey[src]

impl Ord for EdgeKey[src]

impl PartialEq<EdgeKey> for EdgeKey[src]

impl PartialOrd<EdgeKey> for EdgeKey[src]

impl Serialize for EdgeKey[src]

impl StructuralEq for EdgeKey[src]

impl StructuralPartialEq for EdgeKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,