pub enum Operation {
Set(Vec<u8>),
Del,
}
Expand description
Provides detail about the state change that occurred on a key
Variants§
Trait Implementations§
Source§impl PayloadSerialize for Operation
impl PayloadSerialize for Operation
Source§fn serialize(self) -> Result<SerializedPayload, String>
fn serialize(self) -> Result<SerializedPayload, String>
Serializes the payload from the generic type to a byte vector and specifies the content type and format indicator.
The content type and format indicator could be the same every time or dynamic per payload. Read more
Source§fn deserialize(
payload: &[u8],
content_type: Option<&String>,
_format_indicator: &FormatIndicator,
) -> Result<Self, DeserializationError<String>>
fn deserialize( payload: &[u8], content_type: Option<&String>, _format_indicator: &FormatIndicator, ) -> Result<Self, DeserializationError<String>>
Deserializes the payload from a byte vector to the generic type Read more
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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