pub enum StateRecord {
Account {
account_id: AccountId,
account: Value,
},
Data {
account_id: AccountId,
data_key_base64: String,
value_base64: String,
},
Contract {
account_id: AccountId,
code_base64: String,
},
AccessKey {
account_id: AccountId,
public_key_base64: String,
access_key: Value,
},
PostponedReceipt(Value),
ReceivedData {
account_id: AccountId,
data_id_hash: String,
data_base64: Option<String>,
},
DelayedReceipt(Value),
}Expand description
We don’t want to introduce extra dependencies to the crate so we use serde_json::Value to represent more complex types.
Though we still want to have at least some type safety.
Variants§
Trait Implementations§
Source§impl Clone for StateRecord
impl Clone for StateRecord
Source§fn clone(&self) -> StateRecord
fn clone(&self) -> StateRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateRecord
impl Debug for StateRecord
impl Eq for StateRecord
Source§impl PartialEq for StateRecord
impl PartialEq for StateRecord
Source§impl Serialize for StateRecord
impl Serialize for StateRecord
impl StructuralPartialEq for StateRecord
Auto Trait Implementations§
impl Freeze for StateRecord
impl RefUnwindSafe for StateRecord
impl Send for StateRecord
impl Sync for StateRecord
impl Unpin for StateRecord
impl UnsafeUnpin for StateRecord
impl UnwindSafe for StateRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more