pub enum ActionType {
Create,
Update,
Delete,
}
Expand description
when sending signals, distinguish between “create”, “update”, and “delete” actions via this enum. Serializes to/from “create” | “update” | “delete”
Variants§
Trait Implementations§
Source§impl Clone for ActionType
impl Clone for ActionType
Source§fn clone(&self) -> ActionType
fn clone(&self) -> ActionType
Returns a duplicate 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 ActionType
impl Debug for ActionType
Source§impl<'de> Deserialize<'de> for ActionType
impl<'de> Deserialize<'de> for ActionType
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
Source§impl Display for ActionType
impl Display for ActionType
Source§impl PartialEq for ActionType
impl PartialEq for ActionType
Source§impl Serialize for ActionType
impl Serialize for ActionType
Source§impl TryFrom<&ActionType> for SerializedBytes
impl TryFrom<&ActionType> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &ActionType) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &ActionType) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<ActionType> for SerializedBytes
impl TryFrom<ActionType> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: ActionType) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: ActionType) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for ActionType
impl TryFrom<SerializedBytes> for ActionType
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<ActionType, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<ActionType, SerializedBytesError>
Performs the conversion.
impl StructuralPartialEq for ActionType
Auto Trait Implementations§
impl Freeze for ActionType
impl RefUnwindSafe for ActionType
impl Send for ActionType
impl Sync for ActionType
impl Unpin for ActionType
impl UnwindSafe for ActionType
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