aragog 0.17.0

A simple lightweight object-document mapper for ArangoDB
Documentation
use std::fmt::{self, Display, Formatter};

#[derive(Copy, Clone, Debug)]
pub enum GraphQueryDirection {
    Outbound,
    Inbound,
    Any,
}

#[derive(Clone, Debug)]
pub struct GraphQueryData {
    pub direction: GraphQueryDirection,
    pub start_vertex: String,
    pub min: u16,
    pub max: u16,
    pub named_graph: bool,
}

impl Display for GraphQueryDirection {
    fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "{}",
            match self {
                Self::Inbound => "INBOUND",
                Self::Outbound => "OUTBOUND",
                Self::Any => "ANY",
            }
        )
    }
}