pub struct CreateGroupV1Builder { /* private fields */ }Expand description
Instruction builder for CreateGroupV1.
§Accounts:
[writable, signer]group[signer, optional]update_authority[writable, signer]payer[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl CreateGroupV1Builder
impl CreateGroupV1Builder
pub fn new() -> Self
[optional account]
The authority of the new group
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
The system program
pub fn name(&mut self, name: String) -> &mut Self
pub fn uri(&mut self, uri: String) -> &mut Self
pub fn relationships( &mut self, relationships: Vec<RelationshipEntry>, ) -> &mut Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Default for CreateGroupV1Builder
impl Default for CreateGroupV1Builder
Source§fn default() -> CreateGroupV1Builder
fn default() -> CreateGroupV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateGroupV1Builder
impl RefUnwindSafe for CreateGroupV1Builder
impl Send for CreateGroupV1Builder
impl Sync for CreateGroupV1Builder
impl Unpin for CreateGroupV1Builder
impl UnsafeUnpin for CreateGroupV1Builder
impl UnwindSafe for CreateGroupV1Builder
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