14 lines
394 B
Rust
14 lines
394 B
Rust
use titan::Message;
|
|
#[derive(Debug, Default, Clone, PartialEq, Eq, Message)]
|
|
#[message(id = 24115, direction = "server", name = "ServerErrorMessage")]
|
|
pub struct ServerErrorMessage {
|
|
#[codec(string)]
|
|
pub message: Option<String>,
|
|
}
|
|
impl ServerErrorMessage {
|
|
pub fn new(message: impl Into<String>) -> Self {
|
|
Self {
|
|
message: Some(message.into()),
|
|
}
|
|
}
|
|
}
|