pub struct SerializableStackSpec {
pub stack_name: String,
pub program_ids: Vec<String>,
pub idls: Vec<IdlSnapshot>,
pub entities: Vec<SerializableStreamSpec>,
pub pdas: BTreeMap<String, BTreeMap<String, PdaDefinition>>,
pub instructions: Vec<InstructionDef>,
pub content_hash: Option<String>,
}Expand description
A unified stack specification containing all entities.
Written to .hyperstack/{StackName}.stack.json.
Fields§
§stack_name: StringStack name (PascalCase, derived from module ident)
program_ids: Vec<String>Program IDs (one per IDL, in order)
idls: Vec<IdlSnapshot>IDL snapshots (one per program)
entities: Vec<SerializableStreamSpec>All entity specifications in this stack
pdas: BTreeMap<String, BTreeMap<String, PdaDefinition>>PDA registry - defines all PDAs for the stack, grouped by program name Outer key is program name (e.g., “ore”, “entropy”), inner key is PDA name
instructions: Vec<InstructionDef>Instruction definitions for SDK code generation
content_hash: Option<String>Deterministic content hash of the entire stack
Implementations§
Source§impl SerializableStackSpec
impl SerializableStackSpec
Sourcepub fn compute_content_hash(&self) -> String
pub fn compute_content_hash(&self) -> String
Compute deterministic content hash (SHA256 of canonical JSON).
pub fn with_content_hash(self) -> Self
Trait Implementations§
Source§impl Clone for SerializableStackSpec
impl Clone for SerializableStackSpec
Source§fn clone(&self) -> SerializableStackSpec
fn clone(&self) -> SerializableStackSpec
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 SerializableStackSpec
impl Debug for SerializableStackSpec
Source§impl<'de> Deserialize<'de> for SerializableStackSpec
impl<'de> Deserialize<'de> for SerializableStackSpec
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
Auto Trait Implementations§
impl Freeze for SerializableStackSpec
impl RefUnwindSafe for SerializableStackSpec
impl Send for SerializableStackSpec
impl Sync for SerializableStackSpec
impl Unpin for SerializableStackSpec
impl UnsafeUnpin for SerializableStackSpec
impl UnwindSafe for SerializableStackSpec
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