pub enum AccountResolution {
Signer,
Known {
address: String,
},
PdaRef {
pda_name: String,
},
PdaInline {
seeds: Vec<PdaSeedDef>,
program_id: Option<String>,
},
UserProvided,
}Expand description
How an instruction account’s address is determined.
Variants§
Signer
Must sign the transaction (uses wallet.publicKey)
Known
Fixed known address (e.g., System Program, Token Program)
PdaRef
Reference to a PDA in the stack’s pdas registry
PdaInline
Inline PDA definition (for one-off PDAs not in the registry)
UserProvided
User must provide at call time via options.accounts
Trait Implementations§
Source§impl Clone for AccountResolution
impl Clone for AccountResolution
Source§fn clone(&self) -> AccountResolution
fn clone(&self) -> AccountResolution
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 AccountResolution
impl Debug for AccountResolution
Source§impl<'de> Deserialize<'de> for AccountResolution
impl<'de> Deserialize<'de> for AccountResolution
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 AccountResolution
impl PartialEq for AccountResolution
Source§impl Serialize for AccountResolution
impl Serialize for AccountResolution
impl StructuralPartialEq for AccountResolution
Auto Trait Implementations§
impl Freeze for AccountResolution
impl RefUnwindSafe for AccountResolution
impl Send for AccountResolution
impl Sync for AccountResolution
impl Unpin for AccountResolution
impl UnsafeUnpin for AccountResolution
impl UnwindSafe for AccountResolution
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