pub enum GeneralResponse {
Success,
SpecificSuccessResponse(SpecificSuccessResponse),
Unsupported,
Error(String),
}Variants§
Success
success
SpecificSuccessResponse(SpecificSuccessResponse)
<specific_success_response>
Unsupported
unsupported
Error(String)
(error <string>)
Implementations§
Trait Implementations§
Source§impl Clone for GeneralResponse
impl Clone for GeneralResponse
Source§fn clone(&self) -> GeneralResponse
fn clone(&self) -> GeneralResponse
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 GeneralResponse
impl Debug for GeneralResponse
Source§impl<'de> Deserialize<'de> for GeneralResponse
impl<'de> Deserialize<'de> for GeneralResponse
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 GeneralResponse
impl Display for GeneralResponse
Source§impl Hash for GeneralResponse
impl Hash for GeneralResponse
Source§impl PartialEq for GeneralResponse
impl PartialEq for GeneralResponse
Source§impl Serialize for GeneralResponse
impl Serialize for GeneralResponse
impl Eq for GeneralResponse
impl StructuralPartialEq for GeneralResponse
Auto Trait Implementations§
impl Freeze for GeneralResponse
impl RefUnwindSafe for GeneralResponse
impl Send for GeneralResponse
impl Sync for GeneralResponse
impl Unpin for GeneralResponse
impl UnwindSafe for GeneralResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more