@@ -23,6 +23,11 @@ use serde::Deserialize;
23
23
/// Describes an origin that set corresponding value.
24
24
#[ cfg_attr( all( target_arch = "wasm32" , feature = "marine-abi" ) , marine) ]
25
25
#[ derive( Clone , Debug , Default , Eq , PartialEq , Hash , Serialize , Deserialize ) ]
26
+ #[ cfg_attr(
27
+ feature = "rkyv" ,
28
+ derive( :: rkyv:: Archive , :: rkyv:: Serialize , :: rkyv:: Deserialize )
29
+ ) ]
30
+ #[ cfg_attr( feature = "rkyv" , archive( check_bytes) ) ]
26
31
pub struct SecurityTetraplet {
27
32
/// Id of a peer where corresponding value was set.
28
33
pub peer_pk : String ,
@@ -74,6 +79,11 @@ impl SecurityTetraplet {
74
79
/// This struct contains parameters that would be accessible by Wasm modules.
75
80
#[ cfg_attr( all( target_arch = "wasm32" , feature = "marine-abi" ) , marine) ]
76
81
#[ derive( Clone , PartialEq , Default , Eq , Debug , Serialize , Deserialize ) ]
82
+ #[ cfg_attr(
83
+ feature = "rkyv" ,
84
+ derive( :: rkyv:: Archive , :: rkyv:: Serialize , :: rkyv:: Deserialize )
85
+ ) ]
86
+ #[ cfg_attr( feature = "rkyv" , archive( check_bytes) ) ]
77
87
pub struct CallParameters {
78
88
/// Peer id of the AIR script initiator.
79
89
pub init_peer_id : String ,
0 commit comments