fastly_api/models/
inline_response_400.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct InlineResponse400 {
13 #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
14 pub code: Option<Code>,
15}
16
17impl InlineResponse400 {
18 pub fn new() -> InlineResponse400 {
19 InlineResponse400 {
20 code: None,
21 }
22 }
23}
24
25#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
27pub enum Code {
28 #[serde(rename = "invalid_grant")]
29 InvalidGrant,
30 #[serde(rename = "invalid_request")]
31 InvalidRequest,
32 #[serde(rename = "invalid_scope")]
33 InvalidScope,
34 #[serde(rename = "account_locked")]
35 AccountLocked,
36 #[serde(rename = "2fa.verify")]
37 MfaVerify,
38}
39
40impl Default for Code {
41 fn default() -> Code {
42 Self::InvalidGrant
43 }
44}
45