antimatter_api/models/resource_not_found_error.rs
1/*
2 * Antimatter Public API
3 *
4 * Interact with the Antimatter Cloud API
5 *
6 * The version of the OpenAPI document: 2.0.13
7 * Contact: support@antimatter.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ResourceNotFoundError : Returned when interacting with a valid URL, but the request references an unknown resource
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ResourceNotFoundError {
17 /// which resource type cannot be found
18 #[serde(rename = "resourceType")]
19 pub resource_type: String,
20 /// the identifier for the resource we cannot locate
21 #[serde(rename = "identifier")]
22 pub identifier: String,
23 /// a free form message describing the error
24 #[serde(rename = "message")]
25 pub message: String,
26}
27
28impl ResourceNotFoundError {
29 /// Returned when interacting with a valid URL, but the request references an unknown resource
30 pub fn new(resource_type: String, identifier: String, message: String) -> ResourceNotFoundError {
31 ResourceNotFoundError {
32 resource_type,
33 identifier,
34 message,
35 }
36 }
37}
38