Struct substreams_ethereum_abigen::build::Abigen
source · [−]pub struct Abigen { /* private fields */ }Implementations
sourceimpl Abigen
impl Abigen
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).
pub fn generate(&self) -> Result<GeneratedBindings, Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Abigen
impl Send for Abigen
impl Sync for Abigen
impl Unpin for Abigen
impl UnwindSafe for Abigen
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more