pub struct IdlSnapshot {
pub name: String,
pub version: String,
pub accounts: Vec<IdlAccountSnapshot>,
pub instructions: Vec<IdlInstructionSnapshot>,
pub types: Vec<IdlTypeDefSnapshot>,
pub events: Vec<IdlEventSnapshot>,
pub errors: Vec<IdlErrorSnapshot>,
pub discriminant_size: usize,
}Expand description
Snapshot of an Anchor IDL for embedding in the AST Contains all information needed to generate parsers and SDK types
Fields§
§name: StringProgram name (e.g., “pump”)
version: StringProgram version
accounts: Vec<IdlAccountSnapshot>Account type definitions
instructions: Vec<IdlInstructionSnapshot>Instruction definitions
types: Vec<IdlTypeDefSnapshot>Type definitions (structs, enums)
events: Vec<IdlEventSnapshot>Event definitions
errors: Vec<IdlErrorSnapshot>Error definitions
discriminant_size: usizeDiscriminant size in bytes (1 for Steel, 8 for Anchor) Defaults to 8 (Anchor) for backwards compatibility
Trait Implementations§
Source§impl Clone for IdlSnapshot
impl Clone for IdlSnapshot
Source§fn clone(&self) -> IdlSnapshot
fn clone(&self) -> IdlSnapshot
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 IdlSnapshot
impl Debug for IdlSnapshot
Source§impl<'de> Deserialize<'de> for IdlSnapshot
impl<'de> Deserialize<'de> for IdlSnapshot
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 IdlSnapshot
impl RefUnwindSafe for IdlSnapshot
impl Send for IdlSnapshot
impl Sync for IdlSnapshot
impl Unpin for IdlSnapshot
impl UnwindSafe for IdlSnapshot
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