pub struct ProgramABI {
pub program_type: String,
pub spec_version: Version,
pub encoding_version: Version,
pub concrete_types: Vec<TypeConcreteDeclaration>,
pub metadata_types: Vec<TypeMetadataDeclaration>,
pub functions: Vec<ABIFunction>,
pub logged_types: Option<Vec<LoggedType>>,
pub messages_types: Option<Vec<MessageType>>,
pub configurables: Option<Vec<Configurable>>,
pub error_codes: Option<BTreeMap<u64, ErrorDetails>>,
pub panicking_calls: Option<BTreeMap<u64, PanickingCall>>,
}Expand description
FuelVM ABI representation in JSON, originally specified here.
This type may be used by compilers and related tooling to convert an ABI representation into native Rust structs and vice-versa.
Fields§
§program_type: String§spec_version: Version§encoding_version: Version§concrete_types: Vec<TypeConcreteDeclaration>§metadata_types: Vec<TypeMetadataDeclaration>§functions: Vec<ABIFunction>§logged_types: Option<Vec<LoggedType>>§messages_types: Option<Vec<MessageType>>§configurables: Option<Vec<Configurable>>§error_codes: Option<BTreeMap<u64, ErrorDetails>>§panicking_calls: Option<BTreeMap<u64, PanickingCall>>Trait Implementations§
Source§impl Clone for ProgramABI
impl Clone for ProgramABI
Source§fn clone(&self) -> ProgramABI
fn clone(&self) -> ProgramABI
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 ProgramABI
impl Debug for ProgramABI
Source§impl Default for ProgramABI
impl Default for ProgramABI
Source§fn default() -> ProgramABI
fn default() -> ProgramABI
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProgramABI
impl<'de> Deserialize<'de> for ProgramABI
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
Source§impl PartialEq for ProgramABI
impl PartialEq for ProgramABI
Source§impl Serialize for ProgramABI
impl Serialize for ProgramABI
impl Eq for ProgramABI
impl StructuralPartialEq for ProgramABI
Auto Trait Implementations§
impl Freeze for ProgramABI
impl RefUnwindSafe for ProgramABI
impl Send for ProgramABI
impl Sync for ProgramABI
impl Unpin for ProgramABI
impl UnwindSafe for ProgramABI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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