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: Stringversion: u8status: CommandStatusmessage: Stringdata: Option<CommandResponseData>Implementations
pub fn new(
id: String,
status: CommandStatus,
message: String,
data: Option<CommandResponseData>
) -> CommandResponseTrait 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 CommandResponseimpl Send for CommandResponseimpl Sync for CommandResponseimpl Unpin for CommandResponseimpl UnwindSafe for CommandResponseBlanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self