pub struct IdlSpec {
pub version: Option<String>,
pub name: Option<String>,
pub address: Option<String>,
pub instructions: Vec<IdlInstruction>,
pub accounts: Vec<IdlAccount>,
pub types: Vec<IdlTypeDef>,
pub events: Vec<IdlEvent>,
pub errors: Vec<IdlError>,
pub constants: Vec<IdlConstant>,
pub metadata: Option<IdlMetadata>,
}Fields§
§version: Option<String>§name: Option<String>§address: Option<String>§instructions: Vec<IdlInstruction>§accounts: Vec<IdlAccount>§types: Vec<IdlTypeDef>§events: Vec<IdlEvent>§errors: Vec<IdlError>§constants: Vec<IdlConstant>§metadata: Option<IdlMetadata>Implementations§
Source§impl IdlSpec
impl IdlSpec
pub fn get_name(&self) -> &str
pub fn get_version(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IdlSpec
impl<'de> Deserialize<'de> for IdlSpec
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 IdlSpec
impl RefUnwindSafe for IdlSpec
impl Send for IdlSpec
impl Sync for IdlSpec
impl Unpin for IdlSpec
impl UnsafeUnpin for IdlSpec
impl UnwindSafe for IdlSpec
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