pub fn new(owner: Id, ctr: Val, id: Id, record_hint: RecordHint) -> Transaction {
        let mut transaction = Transaction::default();
        let view: &mut Self = transaction.view_mut();

        view.type_id = (TransactionType::Data as u64).into();
        view.owner = owner;
        view.ctr = ctr;
        view.id = id;
        view.record_hint = record_hint;
        transaction
    }
/// create a new data transaction.
create a new data transaction.
create a new data transaction .
pub fn new(owner: Id, ctr: Val, id: Id, record_hint: RecordHint) -> Transaction {
        let mut transaction = Transaction::default();
        let view: &mut Self = transaction.view_mut();
        view.type_id = (TransactionType::Data as u64).into();
        view.owner = owner;
        view.ctr = ctr;
        view.id = id;
        view.record_hint = record_hint;
        transaction
    }
pub fn new ( owner : Id , ctr : Val , id : Id , record_hint : RecordHint ) -> Transaction { let mut transaction = Transaction :: default ( ) ; let view : & mut Self = transaction . view_mut ( ) ; view . type_id = ( TransactionType :: Data as u64 ) . into ( ) ; view . owner = owner ; view . ctr = ctr ; view . id = id ; view . record_hint = record_hint ; transaction }
create a new data transaction.
create a new data transaction .
owner
Id
ctr
Val
id
Id
record_hint
RecordHint