pub struct ToolboxIdlProgram {
pub metadata: ToolboxIdlProgramMetadata,
pub typedefs: HashMap<String, Arc<ToolboxIdlTypedef>>,
pub accounts: HashMap<String, Arc<ToolboxIdlAccount>>,
pub instructions: HashMap<String, Arc<ToolboxIdlInstruction>>,
pub events: HashMap<String, Arc<ToolboxIdlEvent>>,
pub errors: HashMap<String, Arc<ToolboxIdlError>>,
}Fields§
§metadata: ToolboxIdlProgramMetadata§typedefs: HashMap<String, Arc<ToolboxIdlTypedef>>§accounts: HashMap<String, Arc<ToolboxIdlAccount>>§instructions: HashMap<String, Arc<ToolboxIdlInstruction>>§events: HashMap<String, Arc<ToolboxIdlEvent>>§errors: HashMap<String, Arc<ToolboxIdlError>>Implementations§
Source§impl ToolboxIdlProgram
impl ToolboxIdlProgram
pub fn guess_account( &self, account_data: &[u8], ) -> Option<Arc<ToolboxIdlAccount>>
pub fn guess_instruction( &self, instruction_data: &[u8], ) -> Option<Arc<ToolboxIdlInstruction>>
pub fn guess_event(&self, event_data: &[u8]) -> Option<Arc<ToolboxIdlEvent>>
pub fn guess_error(&self, error_code: u64) -> Option<Arc<ToolboxIdlError>>
Source§impl ToolboxIdlProgram
impl ToolboxIdlProgram
pub fn export(&self, format: &ToolboxIdlFormat) -> Value
pub fn export_metadata(&self) -> Value
Source§impl ToolboxIdlProgram
impl ToolboxIdlProgram
pub fn from_lib(program_id: &Pubkey) -> Option<ToolboxIdlProgram>
pub fn find_anchor_address(program_id: &Pubkey) -> Result<Pubkey>
Source§impl ToolboxIdlProgram
impl ToolboxIdlProgram
pub const DISCRIMINATOR: &[u8]
pub fn try_parse_from_account_data( account_data: &[u8], ) -> Result<ToolboxIdlProgram>
pub fn try_parse_from_str(content: &str) -> Result<ToolboxIdlProgram>
pub fn try_parse(value: &Value) -> Result<ToolboxIdlProgram>
Trait Implementations§
Source§impl Clone for ToolboxIdlProgram
impl Clone for ToolboxIdlProgram
Source§fn clone(&self) -> ToolboxIdlProgram
fn clone(&self) -> ToolboxIdlProgram
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 ToolboxIdlProgram
impl Debug for ToolboxIdlProgram
Source§impl Default for ToolboxIdlProgram
impl Default for ToolboxIdlProgram
Source§fn default() -> ToolboxIdlProgram
fn default() -> ToolboxIdlProgram
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToolboxIdlProgram
impl PartialEq for ToolboxIdlProgram
impl StructuralPartialEq for ToolboxIdlProgram
Auto Trait Implementations§
impl Freeze for ToolboxIdlProgram
impl RefUnwindSafe for ToolboxIdlProgram
impl Send for ToolboxIdlProgram
impl Sync for ToolboxIdlProgram
impl Unpin for ToolboxIdlProgram
impl UnwindSafe for ToolboxIdlProgram
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more