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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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