Struct botx_api_framework::integration::actix::command_handler::CommandError    
source · pub struct CommandError {
    pub reason: String,
    pub error_data: HashMap<String, Value>,
    pub errors: Vec<String>,
}Fields§
§reason: String§error_data: HashMap<String, Value>§errors: Vec<String>Trait Implementations§
source§impl Clone for CommandError
 
impl Clone for CommandError
source§fn clone(&self) -> CommandError
 
fn clone(&self) -> CommandError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for CommandError
 
impl Debug for CommandError
source§impl Default for CommandError
 
impl Default for CommandError
source§impl<'de> Deserialize<'de> for CommandError
 
impl<'de> Deserialize<'de> for CommandError
source§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
source§impl Display for CommandError
 
impl Display for CommandError
source§impl ResponseError for CommandError
 
impl ResponseError for CommandError
source§fn error_response(&self) -> HttpResponse
 
fn error_response(&self) -> HttpResponse
Creates full response for error. Read more
source§fn status_code(&self) -> StatusCode
 
fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more