Struct sozu_command_lib::command::CommandResponse [−][src]
pub struct CommandResponse { pub id: String, pub version: u8, pub status: CommandStatus, pub message: String, pub data: Option<CommandResponseData>, }
Fields
id: String
version: u8
status: CommandStatus
message: String
data: Option<CommandResponseData>
Implementations
pub fn new(
id: String,
status: CommandStatus,
message: String,
data: Option<CommandResponseData>
) -> CommandResponse
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CommandResponse
impl Send for CommandResponse
impl Sync for CommandResponse
impl Unpin for CommandResponse
impl UnwindSafe for CommandResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self