pub struct PartialErrorResponse {
pub message: String,
pub details: Option<ErrorMessage>,
}
Fields§
§message: String
§details: Option<ErrorMessage>
Implementations§
source§impl PartialErrorResponse
impl PartialErrorResponse
pub fn new(message: String) -> PartialErrorResponse
pub fn with_command(self, command: String) -> ErrorResponse
Trait Implementations§
source§impl From<Error> for PartialErrorResponse
impl From<Error> for PartialErrorResponse
source§impl<C> From<PartialErrorResponse> for RequestError<C>
impl<C> From<PartialErrorResponse> for RequestError<C>
source§fn from(error: PartialErrorResponse) -> Self
fn from(error: PartialErrorResponse) -> Self
Converts to this type from the input type.