ory_client_client/models/json_error.rs
1/*
2 * Ory APIs
3 *
4 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5 *
6 * The version of the OpenAPI document: v0.0.1-alpha.1
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// JsonError : The standard Ory JSON API error format.
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JsonError {
17 #[serde(rename = "error")]
18 pub error: Box<crate::models::GenericError>,
19}
20
21impl JsonError {
22 /// The standard Ory JSON API error format.
23 pub fn new(error: crate::models::GenericError) -> JsonError {
24 JsonError {
25 error: Box::new(error),
26 }
27 }
28}
29
30