Struct dao::utils::ContractCall
source · pub struct ContractCall {
pub address: Address,
pub entry_point: String,
pub call_args: CallArgs,
pub amount: Option<Balance>,
}
Expand description
A serializable data structure that represent a contract call.
Fields§
§address: Address
§entry_point: String
§call_args: CallArgs
§amount: Option<Balance>
Implementations§
source§impl ContractCall
impl ContractCall
sourcepub fn entry_point(&self) -> &str
pub fn entry_point(&self) -> &str
Get the contract call’s entry point.
Trait Implementations§
source§impl BorshDeserialize for ContractCall
impl BorshDeserialize for ContractCall
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl BorshSerialize for ContractCall
impl BorshSerialize for ContractCall
source§impl Clone for ContractCall
impl Clone for ContractCall
source§fn clone(&self) -> ContractCall
fn clone(&self) -> ContractCall
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ContractCall
impl Send for ContractCall
impl Sync for ContractCall
impl Unpin for ContractCall
impl UnwindSafe for ContractCall
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