autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * 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};

/// InvalidRequestExceptionResponseContent : The request is not valid. Fix the request before retrying.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InvalidRequestExceptionResponseContent {
    /// Each part of the request that was rejected. Absent when the failure is not specific to any part.
    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
    pub errors: Option<Vec<models::ValidationFailure>>,
    /// Why the request failed. The wording can change, so branch on the exception type, not this text.
    #[serde(rename = "message")]
    pub message: String,
}

impl InvalidRequestExceptionResponseContent {
    /// The request is not valid. Fix the request before retrying.
    pub fn new(message: String) -> InvalidRequestExceptionResponseContent {
        InvalidRequestExceptionResponseContent {
            errors: None,
            message,
        }
    }
}