pub struct GetResponse {
pub value: String,
pub exists: bool,
}
Expand description
Response to get request
Fields§
§value: String
the value, if it existed
exists: bool
whether or not the value existed
Trait Implementations§
source§impl Clone for GetResponse
impl Clone for GetResponse
source§fn clone(&self) -> GetResponse
fn clone(&self) -> GetResponse
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 GetResponse
impl Debug for GetResponse
source§impl Default for GetResponse
impl Default for GetResponse
source§fn default() -> GetResponse
fn default() -> GetResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetResponse
impl<'de> Deserialize<'de> for GetResponse
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 PartialEq<GetResponse> for GetResponse
impl PartialEq<GetResponse> for GetResponse
source§fn eq(&self, other: &GetResponse) -> bool
fn eq(&self, other: &GetResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.