Struct substreams_ethereum_abigen::build::Abigen
source · pub struct Abigen<'a> { /* private fields */ }
Implementations§
source§impl<'a> Abigen<'a>
impl<'a> Abigen<'a>
sourcepub fn new<S: AsRef<str>>(_contract_name: S, path: S) -> Result<Self, Error>
pub fn new<S: AsRef<str>>(_contract_name: S, path: S) -> Result<Self, Error>
Creates a new builder for the given contract name and where the ABI JSON file can be found
at path
, which is relative to the your crate’s root directory (where Cargo.toml
file is located).
sourcepub fn from_bytes<S: AsRef<str>>(
_contract_name: S,
abi_bytes: &'a [u8]
) -> Result<Self, Error>
pub fn from_bytes<S: AsRef<str>>( _contract_name: S, abi_bytes: &'a [u8] ) -> Result<Self, Error>
Creates a new builder for the given contract name and where the ABI bytes can be found at ‘abi_bytes’.
pub fn generate(&self) -> Result<GeneratedBindings, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Abigen<'a>
impl<'a> RefUnwindSafe for Abigen<'a>
impl<'a> Send for Abigen<'a>
impl<'a> Sync for Abigen<'a>
impl<'a> Unpin for Abigen<'a>
impl<'a> UnwindSafe for Abigen<'a>
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