[]Attribute Macro fabric_contract::transaction

#[transaction]

Use this to mark the functions that are considered to be transaction functions

Arguments to this provide the ability to indicate

Example

This example is not tested
use fabric_contract::contract::*;
#[Transaction]
pub fn createAsset() { }

#[Transaction(submit)]
pub fn createAnotherAsset() { }
#[Transaction(evaluate)]
pub fn readAsset() { }

#[Transaction(tranisent = {price, owner} )]
pub fn createDetailedAsset(id: String, price: u32, owner: String ) { }