/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReportResp {
/// Accepted is how many samples passed validation. Every one of them was accepted, or the whole report was refused — there is no partial success.
#[serde(rename = "accepted", skip_serializing_if = "Option::is_none")]
pub accepted: Option<i32>,
/// Stored is whether the warehouse actually persisted them. False means the datastore was unavailable and the poll of history was lost; the request still succeeded, so a device retries without being blocked.
#[serde(rename = "stored", skip_serializing_if = "Option::is_none")]
pub stored: Option<bool>,
}
impl ReportResp {
pub fn new() -> ReportResp {
ReportResp {
accepted: None,
stored: None,
}
}
}