pub struct SimpleError(pub String);
Expand description
Expects a SimpleError from deserializer, Serialize as a RESP SimpleError
Tuple Fields
0: String
Trait Implementations
sourceimpl Debug for SimpleError
impl Debug for SimpleError
sourceimpl<'de> Deserialize<'de> for SimpleError
impl<'de> Deserialize<'de> for SimpleError
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 From<&str> for SimpleError
impl From<&str> for SimpleError
sourceimpl From<String> for SimpleError
impl From<String> for SimpleError
sourceimpl PartialEq<SimpleError> for SimpleError
impl PartialEq<SimpleError> for SimpleError
sourcefn eq(&self, other: &SimpleError) -> bool
fn eq(&self, other: &SimpleError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SimpleError) -> bool
fn ne(&self, other: &SimpleError) -> bool
This method tests for !=
.
sourceimpl Serialize for SimpleError
impl Serialize for SimpleError
impl Eq for SimpleError
impl StructuralEq for SimpleError
impl StructuralPartialEq for SimpleError
Auto Trait Implementations
impl RefUnwindSafe for SimpleError
impl Send for SimpleError
impl Sync for SimpleError
impl Unpin for SimpleError
impl UnwindSafe for SimpleError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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