pub struct Operate<'a> {
pub command: Cow<'a, str>,
pub command_key: Cow<'a, str>,
pub send_resp: bool,
pub input_args: HashMap<Cow<'a, str>, Cow<'a, str>>,
}
Fields§
§command: Cow<'a, str>
§command_key: Cow<'a, str>
§send_resp: bool
§input_args: HashMap<Cow<'a, str>, Cow<'a, str>>
Trait Implementations§
source§impl<'a> MessageRead<'a> for Operate<'a>
impl<'a> MessageRead<'a> for Operate<'a>
source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moresource§impl<'a> MessageWrite for Operate<'a>
impl<'a> MessageWrite for Operate<'a>
source§impl<'a> PartialEq for Operate<'a>
impl<'a> PartialEq for Operate<'a>
impl<'a> StructuralPartialEq for Operate<'a>
Auto Trait Implementations§
impl<'a> Freeze for Operate<'a>
impl<'a> RefUnwindSafe for Operate<'a>
impl<'a> Send for Operate<'a>
impl<'a> Sync for Operate<'a>
impl<'a> Unpin for Operate<'a>
impl<'a> UnwindSafe for Operate<'a>
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