Struct hpl_hive_control::state::project_state::Project
source · pub struct Project {
pub bump: u8,
pub authority: Pubkey,
pub key: Pubkey,
pub driver: Pubkey,
pub name: String,
pub mint_indexing: Indexing,
pub services: Vec<Service>,
pub collections: Vec<Pubkey>,
pub creators: Vec<Pubkey>,
pub allowed_programs: Vec<Pubkey>,
pub profile_data_config: HashMap<String, ProfileDataType>,
}
Expand description
Project State Account
Fields§
§bump: u8
§key: Pubkey
§driver: Pubkey
§name: String
§mint_indexing: Indexing
§services: Vec<Service>
§collections: Vec<Pubkey>
§creators: Vec<Pubkey>
§allowed_programs: Vec<Pubkey>
§profile_data_config: HashMap<String, ProfileDataType>
Trait Implementations§
source§impl AccountDeserialize for Project
impl AccountDeserialize for Project
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 Project
impl AccountSerialize for Project
source§impl BorshDeserialize for Projectwhere
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
String: BorshDeserialize,
Indexing: BorshDeserialize,
Vec<Service>: BorshDeserialize,
Vec<Pubkey>: BorshDeserialize,
HashMap<String, ProfileDataType>: BorshDeserialize,
impl BorshDeserialize for Projectwhere u8: BorshDeserialize, Pubkey: BorshDeserialize, String: BorshDeserialize, Indexing: BorshDeserialize, Vec<Service>: BorshDeserialize, Vec<Pubkey>: BorshDeserialize, HashMap<String, ProfileDataType>: BorshDeserialize,
source§impl BorshSerialize for Projectwhere
u8: BorshSerialize,
Pubkey: BorshSerialize,
String: BorshSerialize,
Indexing: BorshSerialize,
Vec<Service>: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
HashMap<String, ProfileDataType>: BorshSerialize,
impl BorshSerialize for Projectwhere u8: BorshSerialize, Pubkey: BorshSerialize, String: BorshSerialize, Indexing: BorshSerialize, Vec<Service>: BorshSerialize, Vec<Pubkey>: BorshSerialize, HashMap<String, ProfileDataType>: BorshSerialize,
source§impl Discriminator for Project
impl Discriminator for Project
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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