artifacts-rs 1.5.1

Rust client for Artifacts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct ErrorResponseSchema {
    #[serde(rename = "error")]
    pub error: Box<models::ErrorSchema>,
}

impl ErrorResponseSchema {
    pub fn new(error: models::ErrorSchema) -> ErrorResponseSchema {
        ErrorResponseSchema {
            error: Box::new(error),
        }
    }
}