pub struct SolAttrs {
pub rpc: Option<bool>,
pub abi: Option<bool>,
pub all_derives: Option<bool>,
pub extra_methods: Option<bool>,
pub docs: Option<bool>,
pub alloy_sol_types: Option<Path>,
pub alloy_contract: Option<Path>,
pub rename: Option<LitStr>,
pub rename_all: Option<CasingStyle>,
pub bytecode: Option<LitStr>,
pub deployed_bytecode: Option<LitStr>,
pub type_check: Option<LitStr>,
}
Expand description
#[sol(...)]
attributes.
Fields§
§rpc: Option<bool>
#[sol(rpc)]
abi: Option<bool>
#[sol(abi)]
all_derives: Option<bool>
#[sol(all_derives)]
extra_methods: Option<bool>
#[sol(extra_methods)]
docs: Option<bool>
#[sol(docs)]
alloy_sol_types: Option<Path>
#[sol(alloy_sol_types = alloy_core::sol_types)]
alloy_contract: Option<Path>
#[sol(alloy_contract = alloy_contract)]
rename: Option<LitStr>
UNIMPLEMENTED: #[sol(rename = "new_name")]
rename_all: Option<CasingStyle>
UNIMPLMENTED: #[sol(rename_all = "camelCase")]
bytecode: Option<LitStr>
#[sol(bytecode = "0x1234")]
deployed_bytecode: Option<LitStr>
#[sol(deployed_bytecode = "0x1234")]
type_check: Option<LitStr>
UDVT only #[sol(type_check = "my_function")]
Implementations§
Trait Implementations§
impl Eq for SolAttrs
impl StructuralPartialEq for SolAttrs
Auto Trait Implementations§
impl Freeze for SolAttrs
impl RefUnwindSafe for SolAttrs
impl !Send for SolAttrs
impl !Sync for SolAttrs
impl Unpin for SolAttrs
impl UnwindSafe for SolAttrs
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