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: IdentThe name of the contract module
imports: TokenStreamThe contract module’s imports
contract: TokenStreamContract, Middle related implementations
events: TokenStreamAll event impls of the contract
errors: TokenStreamAll error impls of the contract
call_structs: TokenStreamAll contract call struct related types
abi_structs: TokenStreamThe 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
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