#[repr(C)]pub struct SpluStruct {
pub splu_secondary: Pubkey,
pub state_splu_secondary: u8,
pub splu_tertiary1: Pubkey,
pub state_splu_tertiary1: u8,
pub splu_tertiary2: Pubkey,
pub state_splu_tertiary2: u8,
pub authority_splu: Pubkey,
pub program_account_splu: Pubkey,
pub nonce_splu: u8,
}Expand description
struct of SPLU of PPU
Fields§
§splu_secondary: PubkeySPLU secondary address.
state_splu_secondary: u8State of SPLU secondary.
splu_tertiary1: PubkeyFirst SPLU tertiary address.
state_splu_tertiary1: u8State of first SPLU tertiary.
splu_tertiary2: PubkeySecond SPLU tertiary address.
state_splu_tertiary2: u8State of second SPLU tertiary.
Authority of SPLU.
program_account_splu: PubkeyAccount_program of SPLU.
nonce_splu: u8Nonce of SPLU.
Implementations§
Source§impl SpluStruct
impl SpluStruct
Sourcepub fn add_new_splu_secondary(
&mut self,
splu_secondary_address: Pubkey,
authority_splu: Pubkey,
program_account_splu: Pubkey,
nonce_splu: u8,
) -> ProgramResult
pub fn add_new_splu_secondary( &mut self, splu_secondary_address: Pubkey, authority_splu: Pubkey, program_account_splu: Pubkey, nonce_splu: u8, ) -> ProgramResult
Create new SPLU Struct
Sourcepub fn update_splu_secondary(&mut self) -> ProgramResult
pub fn update_splu_secondary(&mut self) -> ProgramResult
update the state of splu secondary
Sourcepub fn reset_splu_secondary(&mut self) -> ProgramResult
pub fn reset_splu_secondary(&mut self) -> ProgramResult
reset the state of splu secondary
Sourcepub fn add_splu_tertiary(
&mut self,
splu_tertiary1: Pubkey,
splu_tertiary2: Pubkey,
) -> ProgramResult
pub fn add_splu_tertiary( &mut self, splu_tertiary1: Pubkey, splu_tertiary2: Pubkey, ) -> ProgramResult
add new splu teriary
Sourcepub fn reset_splu_tertiary(&mut self) -> ProgramResult
pub fn reset_splu_tertiary(&mut self) -> ProgramResult
reset the state of splu teriary
Sourcepub fn update_state_tertiary(&mut self, state1: u8, state2: u8) -> ProgramResult
pub fn update_state_tertiary(&mut self, state1: u8, state2: u8) -> ProgramResult
update the state splu teriary
Trait Implementations§
Source§impl Clone for SpluStruct
impl Clone for SpluStruct
Source§fn clone(&self) -> SpluStruct
fn clone(&self) -> SpluStruct
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 SpluStruct
impl Debug for SpluStruct
Source§impl Default for SpluStruct
impl Default for SpluStruct
Source§fn default() -> SpluStruct
fn default() -> SpluStruct
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpluStruct
impl<'de> Deserialize<'de> for SpluStruct
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 PartialEq for SpluStruct
impl PartialEq for SpluStruct
Source§impl Serialize for SpluStruct
impl Serialize for SpluStruct
impl StructuralPartialEq for SpluStruct
Auto Trait Implementations§
impl Freeze for SpluStruct
impl RefUnwindSafe for SpluStruct
impl Send for SpluStruct
impl Sync for SpluStruct
impl Unpin for SpluStruct
impl UnwindSafe for SpluStruct
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<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