pub struct PartialErrorResponse {
pub message: String,
pub details: Option<Message>,
}
Fields§
§message: String
§details: Option<Message>
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.
Auto Trait Implementations§
impl Freeze for PartialErrorResponse
impl RefUnwindSafe for PartialErrorResponse
impl Send for PartialErrorResponse
impl Sync for PartialErrorResponse
impl Unpin for PartialErrorResponse
impl UnwindSafe for PartialErrorResponse
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