afinsp-rs 0.1.1

AFINSP Billing SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Validation error type.

use serde::{Deserialize, Serialize};

/// A single validation error.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ValidationError {
    /// Location of the error (e.g., ["body", "field_name"]).
    pub loc: Vec<String>,
    /// Error message.
    pub msg: String,
    /// Error type identifier.
    #[serde(rename = "type")]
    pub error_type: String,
}