Struct ethers_contract_abigen::contract::ExpandedContract
source · pub struct ExpandedContract {
pub module: Ident,
pub imports: TokenStream,
pub contract: TokenStream,
pub events: TokenStream,
pub errors: TokenStream,
pub call_structs: TokenStream,
pub abi_structs: TokenStream,
}
Expand description
The result of Context::expand
Fields§
§module: Ident
The name of the contract module
imports: TokenStream
The contract module’s imports
contract: TokenStream
Contract, Middle related implementations
events: TokenStream
All event impls of the contract
errors: TokenStream
All error impls of the contract
call_structs: TokenStream
All contract call struct related types
abi_structs: TokenStream
The contract’s internal structs
Implementations§
source§impl ExpandedContract
impl ExpandedContract
sourcepub fn into_tokens(self) -> TokenStream
pub fn into_tokens(self) -> TokenStream
Merges everything into a single module
sourcepub fn into_tokens_with_path(self, path: Option<&Path>) -> TokenStream
pub fn into_tokens_with_path(self, path: Option<&Path>) -> TokenStream
Merges everything into a single module, with an include_bytes!
to the given path
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ExpandedContract
impl !Send for ExpandedContract
impl !Sync for ExpandedContract
impl Unpin for ExpandedContract
impl UnwindSafe for ExpandedContract
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