Struct openraft_memstore::ClientRequest
source · pub struct ClientRequest {
pub client: String,
pub serial: u64,
pub status: String,
}
Expand description
The application data request type which the MemStore
works with.
Conceptually, for demo purposes, this represents an update to a client’s status info, returning the previously recorded status.
Fields§
§client: String
The ID of the client which has sent the request.
serial: u64
The serial number of this request.
status: String
A string describing the status of the client. For a real application, this should probably be an enum representing all of the various types of requests / operations which a client can perform.
Trait Implementations§
source§impl Clone for ClientRequest
impl Clone for ClientRequest
source§fn clone(&self) -> ClientRequest
fn clone(&self) -> ClientRequest
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 ClientRequest
impl Debug for ClientRequest
source§impl<'de> Deserialize<'de> for ClientRequest
impl<'de> Deserialize<'de> for ClientRequest
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