use serde::Deserialize;
use serde::Serialize;
use std::collections::BTreeMap;
#[derive(Debug, Serialize, Deserialize)]
pub struct RedisParity {
pub version: String,
pub methods: BTreeMap<String, Method>,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct Difference {
pub reason: String,
pub redis: Option<Method>,
pub glide: Option<Method>,
}
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
pub struct Method {
pub name: String,
pub generics: Vec<Generic>,
pub args: Vec<Argument>,
pub return_type: Option<String>,
}
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
pub struct Generic {
pub name: String,
pub bound: Option<String>,
}
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
pub struct Argument {
pub name: String,
pub type_name: String,
}