#[non_exhaustive]#[repr(u8)]pub enum ActionCallbackKind {
Disabled = 0,
General = 1,
}Expand description
Callback kind for action.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl BorshDeserialize for ActionCallbackKind
impl BorshDeserialize for ActionCallbackKind
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ActionCallbackKind
impl BorshSerialize for ActionCallbackKind
Source§impl Clone for ActionCallbackKind
impl Clone for ActionCallbackKind
Source§fn clone(&self) -> ActionCallbackKind
fn clone(&self) -> ActionCallbackKind
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 ActionCallbackKind
impl Debug for ActionCallbackKind
Source§impl<'de> Deserialize<'de> for ActionCallbackKind
impl<'de> Deserialize<'de> for ActionCallbackKind
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 ActionCallbackKind
impl Display for ActionCallbackKind
Source§impl EnumExt for ActionCallbackKind
impl EnumExt for ActionCallbackKind
Source§impl From<ActionCallbackKind> for u8
impl From<ActionCallbackKind> for u8
Source§fn from(enum_value: ActionCallbackKind) -> Self
fn from(enum_value: ActionCallbackKind) -> Self
Converts to this type from the input type.
Source§impl FromStr for ActionCallbackKind
impl FromStr for ActionCallbackKind
Source§impl IdlBuild for ActionCallbackKind
impl IdlBuild for ActionCallbackKind
Source§fn create_type() -> Option<IdlTypeDef>
fn create_type() -> Option<IdlTypeDef>
Create an IDL type definition for the type. Read more
Source§fn insert_types(types: &mut BTreeMap<String, IdlTypeDef>)
fn insert_types(types: &mut BTreeMap<String, IdlTypeDef>)
Insert all types that are included in the current type definition to the given map.
Source§fn get_full_path() -> String
fn get_full_path() -> String
Get the full module path of the type. Read more
Source§impl PartialEq for ActionCallbackKind
impl PartialEq for ActionCallbackKind
Source§impl Serialize for ActionCallbackKind
impl Serialize for ActionCallbackKind
Source§impl Space for ActionCallbackKind
impl Space for ActionCallbackKind
const INIT_SPACE: usize
Source§impl TryFrom<&str> for ActionCallbackKind
impl TryFrom<&str> for ActionCallbackKind
Source§impl TryFrom<u8> for ActionCallbackKind
impl TryFrom<u8> for ActionCallbackKind
Source§type Error = TryFromPrimitiveError<ActionCallbackKind>
type Error = TryFromPrimitiveError<ActionCallbackKind>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ActionCallbackKind
impl TryFromPrimitive for ActionCallbackKind
const NAME: &'static str = "ActionCallbackKind"
type Primitive = u8
type Error = TryFromPrimitiveError<ActionCallbackKind>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ActionCallbackKind
impl Eq for ActionCallbackKind
impl StructuralPartialEq for ActionCallbackKind
Auto Trait Implementations§
impl Freeze for ActionCallbackKind
impl RefUnwindSafe for ActionCallbackKind
impl Send for ActionCallbackKind
impl Sync for ActionCallbackKind
impl Unpin for ActionCallbackKind
impl UnwindSafe for ActionCallbackKind
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