schema-registry-api 2.0.1

REST API for a schema-registry
Documentation
/// Compatibility result
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct CompatibilityResult {
    /// is compatible
    pub is_compatible: bool,
}

/// Compatibility level
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum CompatibilityLevel {
    /// None
    #[default]
    None,
    /// Backward
    Backward,
    /// Forward
    Forward,
    /// Full
    Full,
    /// Backward transitive
    BackwardTransitive,
    /// Forward transitive
    ForwardTransitive,
    /// Full transitive
    FullTransitive,
}

/// The compatibility
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Compatibility {
    /// The compatibility level
    pub compatibility: CompatibilityLevel,
}

/// The compatibility get result
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct GetCompatibility {
    /// The compatibility level
    #[serde(rename = "compatibilityLevel")]
    pub compatibility_level: CompatibilityLevel,
}