pub enum KnownIdlType {
SystemProgram,
TokenProgram,
AssociatedTokenProgram,
}
Expand description
A reference to an established Solana program. When referencing a KnownIdlType
within a policy rule configuring an SolDataCriterion
, criteria will decode instruction data as documented in the programs. For more information on supported programs, see the links below.
- SystemProgram.
- TokenProgram.
- AssociatedTokenProgram.
JSON schema
{
"title": "KnownIdlType",
"description": "A reference to an established Solana program. When referencing a `KnownIdlType` within a policy rule configuring an `SolDataCriterion`, criteria will decode instruction data as documented in the programs. For more information on supported programs, see the links below.\n - [SystemProgram](https://docs.rs/solana-program/latest/solana_program/system_instruction/enum.SystemInstruction.html).\n - [TokenProgram](https://docs.rs/spl-token/latest/spl_token/instruction/enum.TokenInstruction.html).\n - [AssociatedTokenProgram](https://docs.rs/spl-associated-token-account/latest/spl_associated_token_account/instruction/index.html).",
"type": "string",
"enum": [
"SystemProgram",
"TokenProgram",
"AssociatedTokenProgram"
],
"x-audience": "public"
}
Variants§
Trait Implementations§
Source§impl Clone for KnownIdlType
impl Clone for KnownIdlType
Source§fn clone(&self) -> KnownIdlType
fn clone(&self) -> KnownIdlType
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 KnownIdlType
impl Debug for KnownIdlType
Source§impl<'de> Deserialize<'de> for KnownIdlType
impl<'de> Deserialize<'de> for KnownIdlType
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 KnownIdlType
impl Display for KnownIdlType
Source§impl From<&KnownIdlType> for KnownIdlType
impl From<&KnownIdlType> for KnownIdlType
Source§fn from(value: &KnownIdlType) -> Self
fn from(value: &KnownIdlType) -> Self
Converts to this type from the input type.
Source§impl From<KnownIdlType> for SolDataCriterionIdlsItem
impl From<KnownIdlType> for SolDataCriterionIdlsItem
Source§fn from(value: KnownIdlType) -> Self
fn from(value: KnownIdlType) -> Self
Converts to this type from the input type.
Source§impl FromStr for KnownIdlType
impl FromStr for KnownIdlType
Source§impl Hash for KnownIdlType
impl Hash for KnownIdlType
Source§impl Ord for KnownIdlType
impl Ord for KnownIdlType
Source§fn cmp(&self, other: &KnownIdlType) -> Ordering
fn cmp(&self, other: &KnownIdlType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KnownIdlType
impl PartialEq for KnownIdlType
Source§impl PartialOrd for KnownIdlType
impl PartialOrd for KnownIdlType
Source§impl Serialize for KnownIdlType
impl Serialize for KnownIdlType
Source§impl TryFrom<&String> for KnownIdlType
impl TryFrom<&String> for KnownIdlType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for KnownIdlType
impl TryFrom<&str> for KnownIdlType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for KnownIdlType
impl TryFrom<String> for KnownIdlType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for KnownIdlType
impl Eq for KnownIdlType
impl StructuralPartialEq for KnownIdlType
Auto Trait Implementations§
impl Freeze for KnownIdlType
impl RefUnwindSafe for KnownIdlType
impl Send for KnownIdlType
impl Sync for KnownIdlType
impl Unpin for KnownIdlType
impl UnwindSafe for KnownIdlType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.