Struct openraft_sledstore::ExampleResponse
source · pub struct ExampleResponse {
pub value: Option<String>,
}
Expand description
Here you will defined what type of answer you expect from reading the data of a node.
In this example it will return a optional value from a given key in
the ExampleRequest.Set
.
TODO: Should we explain how to create multiple AppDataResponse
?
Fields§
§value: Option<String>
Trait Implementations§
source§impl Clone for ExampleResponse
impl Clone for ExampleResponse
source§fn clone(&self) -> ExampleResponse
fn clone(&self) -> ExampleResponse
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 ExampleResponse
impl Debug for ExampleResponse
source§impl<'de> Deserialize<'de> for ExampleResponse
impl<'de> Deserialize<'de> for ExampleResponse
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 ExampleResponse
impl RefUnwindSafe for ExampleResponse
impl Send for ExampleResponse
impl Sync for ExampleResponse
impl Unpin for ExampleResponse
impl UnwindSafe for ExampleResponse
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