pub struct AbiFile {
pub abi: AbiMetadata,
pub types: Vec<TypeDef>,
}Fields§
§abi: AbiMetadata§types: Vec<TypeDef>Implementations§
Source§impl AbiFile
impl AbiFile
pub fn new(metadata: AbiMetadata) -> Self
pub fn add_type(&mut self, typedef: TypeDef)
pub fn get_types(&self) -> &[TypeDef]
pub fn package(&self) -> &str
pub fn name(&self) -> Option<&str>
pub fn imports(&self) -> &[ImportSource]
pub fn has_remote_imports(&self) -> bool
pub fn has_local_imports(&self) -> bool
pub fn abi_version(&self) -> u32
pub fn package_version(&self) -> &str
pub fn description(&self) -> &str
pub fn root_types(&self) -> &RootTypes
pub fn instruction_root(&self) -> Option<&str>
pub fn account_root(&self) -> Option<&str>
pub fn errors_type(&self) -> Option<&str>
pub fn options(&self) -> &AbiOptions
pub fn events_type(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AbiFile
impl<'de> Deserialize<'de> for AbiFile
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 AbiFile
impl RefUnwindSafe for AbiFile
impl Send for AbiFile
impl Sync for AbiFile
impl Unpin for AbiFile
impl UnsafeUnpin for AbiFile
impl UnwindSafe for AbiFile
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