pub struct PdaDefinition {
pub name: String,
pub seeds: Vec<PdaSeedDef>,
pub program_id: Option<String>,
}Expand description
PDA (Program-Derived Address) definition for the stack-level registry.
PDAs defined here can be referenced by instructions via pdaRef.
Fields§
§name: StringHuman-readable name (e.g., “miner”, “bondingCurve”)
seeds: Vec<PdaSeedDef>Seeds for PDA derivation, in order
program_id: Option<String>Program ID that owns this PDA. If None, uses the stack’s primary programId.
Trait Implementations§
Source§impl Clone for PdaDefinition
impl Clone for PdaDefinition
Source§fn clone(&self) -> PdaDefinition
fn clone(&self) -> PdaDefinition
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 PdaDefinition
impl Debug for PdaDefinition
Source§impl<'de> Deserialize<'de> for PdaDefinition
impl<'de> Deserialize<'de> for PdaDefinition
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 PdaDefinition
impl PartialEq for PdaDefinition
Source§impl Serialize for PdaDefinition
impl Serialize for PdaDefinition
impl StructuralPartialEq for PdaDefinition
Auto Trait Implementations§
impl Freeze for PdaDefinition
impl RefUnwindSafe for PdaDefinition
impl Send for PdaDefinition
impl Sync for PdaDefinition
impl Unpin for PdaDefinition
impl UnwindSafe for PdaDefinition
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