pub struct CreateProjectArgs {
pub name: String,
pub driver: Option<Pubkey>,
pub associated_programs: Option<ShortVec<AssociatedProgram>>,
pub profile_data_config: Option<ProfileDataConfig>,
pub subsidize_fees: bool,
}
Expand description
Structure representing the arguments for creating a new project.
§Fields
name
: The name of the project.expected_mint_addresses
: The expected number of mint addresses for the project.driver
: Option Public key representing the driver authority for the project.associated_programs
: Option<Vec> of Public keys representing the associated programs that can interact (CPI) with project.collections
: Option<Vec> of Public keys representing the nft collections associated with the project.creators
: Option<Vec> of Public keys representing the nft creators associated with the project.
Fields§
§name: String
§driver: Option<Pubkey>
§associated_programs: Option<ShortVec<AssociatedProgram>>
§profile_data_config: Option<ProfileDataConfig>
§subsidize_fees: bool
Trait Implementations§
Source§impl BorshDeserialize for CreateProjectArgs
impl BorshDeserialize for CreateProjectArgs
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for CreateProjectArgs
impl BorshSerialize for CreateProjectArgs
Source§impl Clone for CreateProjectArgs
impl Clone for CreateProjectArgs
Source§fn clone(&self) -> CreateProjectArgs
fn clone(&self) -> CreateProjectArgs
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 moreAuto Trait Implementations§
impl Freeze for CreateProjectArgs
impl RefUnwindSafe for CreateProjectArgs
impl Send for CreateProjectArgs
impl Sync for CreateProjectArgs
impl Unpin for CreateProjectArgs
impl UnwindSafe for CreateProjectArgs
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