pub struct ContractArgs {
pub path_expr: Option<Expr>,
}Expand description
Parsed arguments for #[contract(...)] attribute.
Supports:
#[contract]— reads[package.metadata.rorpc] client_pathfromCargo.toml, falls back toenv!("RORPC_CLIENT_PATH")#[contract("../client/bindings.ts")]— string literal#[contract(env!("RORPC_CLIENT_PATH"))]— environment variable#[contract(concat!(...))]— concatenation expression#[contract(CLIENT_PATH)]— constant
Fields§
§path_expr: Option<Expr>The compile-time expression for the output path.
If None, resolved from Cargo.toml metadata or env var.
Trait Implementations§
Source§impl Parse for ContractArgs
impl Parse for ContractArgs
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for ContractArgs
impl !Sync for ContractArgs
impl Freeze for ContractArgs
impl RefUnwindSafe for ContractArgs
impl Unpin for ContractArgs
impl UnsafeUnpin for ContractArgs
impl UnwindSafe for ContractArgs
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