Struct ethers_contract_abigen::contract::ExpandedContract
source · [−]pub struct ExpandedContract {
pub module: Ident,
pub imports: TokenStream,
pub contract: TokenStream,
pub events: 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
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 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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more