pub struct CodamaProjection {
pub name: &'static str,
pub version: &'static str,
pub instructions: &'static [CodamaInstruction],
pub accounts: &'static [CodamaAccount],
pub events: &'static [CodamaEvent],
}Expand description
Codama-compatible projection of a Hopper program.
This is a bridge, not a prison. It maps the clean public subset of a Hopper program into a shape that Codama/Kinobi tooling can consume.
Does NOT include: internal policy logic, migration planner hints, trust internals, unsafe metadata, segment roles, or manager hints.
§Layering
ProgramManifest = rich truth
ProgramIdl = public schema
CodamaProjection = compatibility projectionFields§
§name: &'static strProgram name.
version: &'static strProgram version.
instructions: &'static [CodamaInstruction]Instructions (public subset).
accounts: &'static [CodamaAccount]Account types (public subset).
events: &'static [CodamaEvent]Events (public subset).
Implementations§
Trait Implementations§
Source§impl Clone for CodamaProjection
impl Clone for CodamaProjection
Source§fn clone(&self) -> CodamaProjection
fn clone(&self) -> CodamaProjection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for CodamaProjection
impl Display for CodamaProjection
impl Copy for CodamaProjection
Auto Trait Implementations§
impl Freeze for CodamaProjection
impl RefUnwindSafe for CodamaProjection
impl Send for CodamaProjection
impl Sync for CodamaProjection
impl Unpin for CodamaProjection
impl UnsafeUnpin for CodamaProjection
impl UnwindSafe for CodamaProjection
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