pub struct RuleSetV1 {
pub operations: HashMap<String, Rule>,
/* private fields */
}
Expand description
The struct containing all Rule Set data, most importantly the map of operations to Rules
.
See top-level module for description of PDA memory layout.
Fields§
§operations: HashMap<String, Rule>
A map to determine the Rule
that belongs to a given Operation
.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleSetV1
impl<'de> Deserialize<'de> for RuleSetV1
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<'a> RuleSet<'a> for RuleSetV1
impl<'a> RuleSet<'a> for RuleSetV1
Source§fn get_rule(
&self,
operation: String,
) -> Result<&dyn Assertable<'a>, ProgramError>
fn get_rule( &self, operation: String, ) -> Result<&dyn Assertable<'a>, ProgramError>
This function returns the rule for an operation by recursively searching through fallbacks
Source§fn lib_version(&self) -> u8
fn lib_version(&self) -> u8
Returns the version of the
RuleSet
.impl Eq for RuleSetV1
impl StructuralPartialEq for RuleSetV1
Auto Trait Implementations§
impl Freeze for RuleSetV1
impl RefUnwindSafe for RuleSetV1
impl Send for RuleSetV1
impl Sync for RuleSetV1
impl Unpin for RuleSetV1
impl UnwindSafe for RuleSetV1
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more