gremlin-client 0.2.2

A Rust client for Apache TinkerPop™
Documentation
use crate::structure::GValue;

pub struct DedupStep {
    params: Vec<GValue>,
}

impl DedupStep {
    fn new(params: Vec<GValue>) -> Self {
        DedupStep { params }
    }

    pub fn params(self) -> Vec<GValue> {
        self.params
    }
}

impl Into<DedupStep> for () {
    fn into(self) -> DedupStep {
        DedupStep::new(vec![])
    }
}

impl Into<DedupStep> for &str {
    fn into(self) -> DedupStep {
        DedupStep::new(vec![String::from(self).into()])
    }
}