pub struct KittyResponse {
pub ok: bool,
pub data: Option<Value>,
pub error: Option<String>,
}Fields§
§ok: bool§data: Option<Value>§error: Option<String>Implementations§
Source§impl KittyResponse
impl KittyResponse
pub fn decode(data: &[u8]) -> Result<Self, ProtocolError>
Trait Implementations§
Source§impl Clone for KittyResponse
impl Clone for KittyResponse
Source§fn clone(&self) -> KittyResponse
fn clone(&self) -> KittyResponse
Returns a duplicate 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 KittyResponse
impl Debug for KittyResponse
Source§impl<'de> Deserialize<'de> for KittyResponse
impl<'de> Deserialize<'de> for KittyResponse
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
Auto Trait Implementations§
impl Freeze for KittyResponse
impl RefUnwindSafe for KittyResponse
impl Send for KittyResponse
impl Sync for KittyResponse
impl Unpin for KittyResponse
impl UnwindSafe for KittyResponse
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