pub fn result_serializer()
Expand description
Result serialization inner #[near]
annotation.
Only one of borsh
or json
can be specified.
§Examples
§Basic example
use near_sdk::near;
#[near(contract_state)]
#[derive(Default)]
pub struct Counter {
val: u64,
}
#[near]
impl Counter {
#[result_serializer(borsh)]
pub fn add_borsh(&self, #[serializer(borsh)] _a: Vec<String>) {
// ..
}
}