pub(crate) struct ContractConfig {
pub(crate) address: Option<Expr>,
}Expand description
Configuration parsed from #[contract(...)] attribute arguments.
Fields§
§address: Option<Expr>Optional address expression for generating Self::new() and Default.
Trait Implementations§
Source§impl Parse for ContractConfig
impl Parse for ContractConfig
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for ContractConfig
impl RefUnwindSafe for ContractConfig
impl !Send for ContractConfig
impl !Sync for ContractConfig
impl Unpin for ContractConfig
impl UnsafeUnpin for ContractConfig
impl UnwindSafe for ContractConfig
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 176 bytes