#[repr(C)]pub enum RuleSetToggle {
None,
Clear,
Set(Pubkey),
}Variants§
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for RuleSetTogglewhere
Pubkey: BorshDeserialize,
impl BorshDeserialize for RuleSetTogglewhere
Pubkey: BorshDeserialize,
Source§impl BorshSerialize for RuleSetTogglewhere
Pubkey: BorshSerialize,
impl BorshSerialize for RuleSetTogglewhere
Pubkey: BorshSerialize,
Source§impl Clone for RuleSetToggle
impl Clone for RuleSetToggle
Source§fn clone(&self) -> RuleSetToggle
fn clone(&self) -> RuleSetToggle
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 RuleSetToggle
impl Debug for RuleSetToggle
Source§impl Default for RuleSetToggle
impl Default for RuleSetToggle
Source§fn default() -> RuleSetToggle
fn default() -> RuleSetToggle
Returns the “default value” for a type. Read more
Source§impl PartialEq for RuleSetToggle
impl PartialEq for RuleSetToggle
impl Eq for RuleSetToggle
impl StructuralPartialEq for RuleSetToggle
Auto Trait Implementations§
impl Freeze for RuleSetToggle
impl RefUnwindSafe for RuleSetToggle
impl Send for RuleSetToggle
impl Sync for RuleSetToggle
impl Unpin for RuleSetToggle
impl UnwindSafe for RuleSetToggle
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<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