Struct solana_sdk::budget_instruction::Contract
source · pub struct Contract {
pub tokens: u64,
pub budget_expr: BudgetExpr,
}
Expand description
A smart contract.
Fields
tokens: u64
The number of tokens allocated to the BudgetExpr
and any transaction fees.
budget_expr: BudgetExpr
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Contract
impl<'de> Deserialize<'de> for Contract
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Contract
impl StructuralEq for Contract
impl StructuralPartialEq for Contract
Auto Trait Implementations
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnwindSafe for Contract
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