rsiot/message/system_messages/
auth_response_error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use std::collections::HashSet;

use serde::{Deserialize, Serialize};
use uuid::Uuid;

use crate::message::MsgKey;

/// Отказ в авторизации
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct AuthResponseErr {
    /// Причина отказа
    pub error: String,

    /// Идентификаторы компонентов, через которые сообщение было получено
    pub trace_ids: HashSet<Uuid>,
}

impl MsgKey for AuthResponseErr {
    fn key(&self) -> String {
        "".to_string()
    }
}