/*
* Santati
*
* Santati's HTTP API. Operations under `/api/v0/` take a team API key in `Authorization: Api-Key <key>`; a missing, invalid or under-scoped key is answered with `403`, never `401`. Errors on `/api/v0/` use one of three bodies: `ErrorDetail` (`{\"detail\": ...}`), `FieldErrors` (messages keyed by request field) or `ErrorEnvelope` (`{\"error\": {\"code\", \"message\", \"field\"}}`, returned by event ingestion and log stream quota checks). Lists on `/api/v0/` are cursor-paginated: follow `next` until it is `null`.
*
* The version of the OpenAPI document: 0.3.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SchemaCheck {
/// How many of the newest stored events were run.
#[serde(rename = "checked")]
pub checked: i32,
/// How many of them the document would reject.
#[serde(rename = "failed")]
pub failed: i32,
/// The first failing events, at most 50.
#[serde(rename = "failures")]
pub failures: Vec<models::SchemaCheckFailure>,
}
impl SchemaCheck {
pub fn new(checked: i32, failed: i32, failures: Vec<models::SchemaCheckFailure>) -> SchemaCheck {
SchemaCheck {
checked,
failed,
failures,
}
}
}