pub struct Roadmap {Show 27 fields
pub realm: Pubkey,
pub collection: Option<Pubkey>,
pub team_authority: Pubkey,
pub dao_authority: Pubkey,
pub metadata_shadow_drive: Pubkey,
pub governance_program_id: Pubkey,
pub governance_type: RoadmapGovType,
pub state: RoadmapState,
pub config: RoadmapConfig,
pub staged_phase_count: u8,
pub locked_phase_count: u8,
pub resolution_proposal: Option<Pubkey>,
pub locked_total_usdc: u64,
pub locked_total_sol: u64,
pub staged_total_usdc: u64,
pub staged_total_sol: u64,
pub approved_phase_count: u8,
pub phase_count: u8,
pub phases_complete: u8,
pub usdc_roadmap_pool: Pubkey,
pub sol_roadmap_pool: Pubkey,
pub mint_contract_record: Option<Pubkey>,
pub bump: u8,
pub initial_payout_percentage: u16,
pub has_initial_payout_completed: bool,
pub reserved: [u8; 15],
pub name: String,
}Fields§
§realm: Pubkey§collection: Option<Pubkey>§metadata_shadow_drive: Pubkey§governance_program_id: Pubkey§governance_type: RoadmapGovType§state: RoadmapState§config: RoadmapConfig§staged_phase_count: u8§locked_phase_count: u8§resolution_proposal: Option<Pubkey>§locked_total_usdc: u64§locked_total_sol: u64§staged_total_usdc: u64§staged_total_sol: u64§approved_phase_count: u8§phase_count: u8§phases_complete: u8§usdc_roadmap_pool: Pubkey§sol_roadmap_pool: Pubkey§mint_contract_record: Option<Pubkey>§bump: u8§initial_payout_percentage: u16§has_initial_payout_completed: bool§reserved: [u8; 15]§name: StringImplementations§
Trait Implementations§
Source§impl AccountDeserialize for Roadmap
impl AccountDeserialize for Roadmap
Source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl AccountSerialize for Roadmap
impl AccountSerialize for Roadmap
Source§impl BorshDeserialize for Roadmapwhere
Pubkey: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
RoadmapGovType: BorshDeserialize,
RoadmapState: BorshDeserialize,
RoadmapConfig: BorshDeserialize,
u8: BorshDeserialize,
u64: BorshDeserialize,
u16: BorshDeserialize,
bool: BorshDeserialize,
[u8; 15]: BorshDeserialize,
String: BorshDeserialize,
impl BorshDeserialize for Roadmapwhere
Pubkey: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
RoadmapGovType: BorshDeserialize,
RoadmapState: BorshDeserialize,
RoadmapConfig: BorshDeserialize,
u8: BorshDeserialize,
u64: BorshDeserialize,
u16: BorshDeserialize,
bool: BorshDeserialize,
[u8; 15]: BorshDeserialize,
String: BorshDeserialize,
Source§impl BorshSerialize for Roadmap
impl BorshSerialize for Roadmap
Source§impl Discriminator for Roadmap
impl Discriminator for Roadmap
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for Roadmap
impl RefUnwindSafe for Roadmap
impl Send for Roadmap
impl Sync for Roadmap
impl Unpin for Roadmap
impl UnwindSafe for Roadmap
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