Struct pchain_types::sc_params::CallData
source · [−]Expand description
CallData defines the data format that passes to entry point of the contact
The struct contains primitive types which are serialized into the field “argument” in smart_contract::Transaction. Before that, Transaction::argument is appended 4 bytes at the front to indicate the format version
Fields
method_name: Stringfunction name of contract with entrypoint methods. Empty string indicates the contract without entrypoint methods
arguments: Vec<u8>arguments to function (entrypoint method)
In contract with entrypoint methods, the arguments should be deserialized to vector of Vec
Trait Implementations
sourceimpl Deserializable<CallData> for CallData
impl Deserializable<CallData> for CallData
Auto Trait Implementations
impl RefUnwindSafe for CallData
impl Send for CallData
impl Sync for CallData
impl Unpin for CallData
impl UnwindSafe for CallData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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