Struct fuel_abi_types::abi::program::ProgramABI
source · 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>>,
}
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>>
Trait Implementations§
source§impl Clone for ProgramABI
impl Clone for ProgramABI
source§fn clone(&self) -> ProgramABI
fn clone(&self) -> ProgramABI
Returns a copy 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§fn eq(&self, other: &ProgramABI) -> bool
fn eq(&self, other: &ProgramABI) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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