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>
Methods
impl CommandResponse[src]
impl CommandResponsepub fn new(
id: String,
status: CommandStatus,
message: String,
data: Option<CommandResponseData>
) -> CommandResponse[src]
pub fn new(
id: String,
status: CommandStatus,
message: String,
data: Option<CommandResponseData>
) -> CommandResponseTrait Implementations
impl Debug for CommandResponse[src]
impl Debug for CommandResponsefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for CommandResponse[src]
impl Clone for CommandResponsefn clone(&self) -> CommandResponse[src]
fn clone(&self) -> CommandResponseReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for CommandResponse[src]
impl PartialEq for CommandResponsefn eq(&self, other: &CommandResponse) -> bool[src]
fn eq(&self, other: &CommandResponse) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CommandResponse) -> bool[src]
fn ne(&self, other: &CommandResponse) -> boolThis method tests for !=.
impl Eq for CommandResponse[src]
impl Eq for CommandResponseAuto Trait Implementations
impl Send for CommandResponse
impl Send for CommandResponseimpl Sync for CommandResponse
impl Sync for CommandResponse