/*
* Stedi Event Destinations
*
* The Stedi Events Service manages event destinations and event delivery. It supports destination CRUD operations, secret management for signature verification, event creation and management, and delivery tracking with resend capabilities.
*
* The version of the OpenAPI document: 2026-02-01
* Contact: healthcare@stedi.com
* Generated by: https://openapi-generator.tech
*/
use crate::event_destinations::models;
use serde::{Deserialize, Serialize};
/// ValidationFailure : A single way in which the request failed validation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ValidationFailure {
/// What was wrong with this part of the request
#[serde(rename = "message")]
pub message: String,
/// A JSON pointer to the part of the request that failed validation
#[serde(rename = "path", skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
}
impl ValidationFailure {
/// A single way in which the request failed validation.
pub fn new(message: String) -> ValidationFailure {
ValidationFailure {
message,
path: None,
}
}
}