Struct sozu_command_lib::command::CommandRequest [−][src]
pub struct CommandRequest {
pub id: String,
pub version: u8,
pub data: CommandRequestData,
pub worker_id: Option<u32>,
}Fields
id: String
version: u8
data: CommandRequestData
worker_id: Option<u32>
Methods
impl CommandRequest[src]
impl CommandRequestpub fn new(
id: String,
data: CommandRequestData,
worker_id: Option<u32>
) -> CommandRequest[src]
pub fn new(
id: String,
data: CommandRequestData,
worker_id: Option<u32>
) -> CommandRequestTrait Implementations
impl Debug for CommandRequest[src]
impl Debug for CommandRequestfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for CommandRequest[src]
impl Clone for CommandRequestfn clone(&self) -> CommandRequest[src]
fn clone(&self) -> CommandRequestReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for CommandRequest[src]
impl PartialEq for CommandRequestfn eq(&self, other: &CommandRequest) -> bool[src]
fn eq(&self, other: &CommandRequest) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CommandRequest) -> bool[src]
fn ne(&self, other: &CommandRequest) -> boolThis method tests for !=.
impl Eq for CommandRequest[src]
impl Eq for CommandRequestimpl Hash for CommandRequest[src]
impl Hash for CommandRequestfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl<'de> Deserialize<'de> for CommandRequest[src]
impl<'de> Deserialize<'de> for CommandRequestfn deserialize<D>(deserializer: D) -> Result<CommandRequest, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<CommandRequest, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for CommandRequest[src]
impl Serialize for CommandRequestAuto Trait Implementations
impl Send for CommandRequest
impl Send for CommandRequestimpl Sync for CommandRequest
impl Sync for CommandRequest