Struct sozu_command_lib::command::CommandResponse
source · [−]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
sourceimpl CommandResponse
impl CommandResponse
pub fn new(
id: String,
status: CommandStatus,
message: String,
data: Option<CommandResponseData>
) -> CommandResponse
Trait Implementations
sourceimpl Clone for CommandResponse
impl Clone for CommandResponse
sourcefn clone(&self) -> CommandResponse
fn clone(&self) -> CommandResponse
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CommandResponse
impl Debug for CommandResponse
sourceimpl<'de> Deserialize<'de> for CommandResponse
impl<'de> Deserialize<'de> for CommandResponse
sourcefn 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
sourceimpl PartialEq<CommandResponse> for CommandResponse
impl PartialEq<CommandResponse> for CommandResponse
sourcefn eq(&self, other: &CommandResponse) -> bool
fn eq(&self, other: &CommandResponse) -> bool
sourceimpl Serialize for CommandResponse
impl Serialize for CommandResponse
impl Eq for CommandResponse
impl StructuralEq for CommandResponse
impl StructuralPartialEq for CommandResponse
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more