pub enum PdaSeedDef {
Literal {
value: String,
},
Bytes {
value: Vec<u8>,
},
ArgRef {
arg_name: String,
arg_type: Option<String>,
},
AccountRef {
account_name: String,
},
}Expand description
Single seed in a PDA derivation.
Variants§
Literal
Static string seed: “miner” → “miner”.as_bytes()
Bytes
Static byte array (for non-UTF8 seeds)
ArgRef
Reference to an instruction argument: arg(“roundId”) → args.roundId as bytes
Fields
AccountRef
Reference to another account in the instruction: account(“mint”) → accounts.mint pubkey
Trait Implementations§
Source§impl Clone for PdaSeedDef
impl Clone for PdaSeedDef
Source§fn clone(&self) -> PdaSeedDef
fn clone(&self) -> PdaSeedDef
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 PdaSeedDef
impl Debug for PdaSeedDef
Source§impl<'de> Deserialize<'de> for PdaSeedDef
impl<'de> Deserialize<'de> for PdaSeedDef
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 PdaSeedDef
impl PartialEq for PdaSeedDef
Source§impl Serialize for PdaSeedDef
impl Serialize for PdaSeedDef
impl StructuralPartialEq for PdaSeedDef
Auto Trait Implementations§
impl Freeze for PdaSeedDef
impl RefUnwindSafe for PdaSeedDef
impl Send for PdaSeedDef
impl Sync for PdaSeedDef
impl Unpin for PdaSeedDef
impl UnwindSafe for PdaSeedDef
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