Struct fuels_programs::contract::CallParameters
source · pub struct CallParameters { /* private fields */ }
Implementations§
source§impl CallParameters
impl CallParameters
pub fn new(amount: u64, asset_id: AssetId, gas_forwarded: u64) -> Self
pub fn set_amount(self, amount: u64) -> Self
pub fn amount(&self) -> u64
pub fn set_asset_id(self, asset_id: AssetId) -> Self
pub fn asset_id(&self) -> AssetId
pub fn set_gas_forwarded(self, gas_forwarded: u64) -> Self
pub fn gas_forwarded(&self) -> Option<u64>
Trait Implementations§
source§impl Clone for CallParameters
impl Clone for CallParameters
source§fn clone(&self) -> CallParameters
fn clone(&self) -> CallParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallParameters
impl Debug for CallParameters
Auto Trait Implementations§
impl RefUnwindSafe for CallParameters
impl Send for CallParameters
impl Sync for CallParameters
impl Unpin for CallParameters
impl UnwindSafe for CallParameters
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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