fastly_api/models/
bot_management_not_authenticated_error.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct BotManagementNotAuthenticatedError {
13 #[serde(rename = "title")]
14 pub title: String,
15 #[serde(rename = "status")]
16 pub status: Status,
17 #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
19 pub detail: Option<String>,
20}
21
22impl BotManagementNotAuthenticatedError {
23 pub fn new(title: String, status: Status) -> BotManagementNotAuthenticatedError {
24 BotManagementNotAuthenticatedError {
25 title,
26 status,
27 detail: None,
28 }
29 }
30}
31
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Status {
35 #[serde(rename = "401")]
36 Status401,
37}
38
39impl Default for Status {
40 fn default() -> Status {
41 Self::Status401
42 }
43}
44