pub struct Account {
pub index: u32,
pub storage: BTreeMap<Vec<u8>, Vec<u8>>,
pub preimage: BTreeMap<[u8; 32], Vec<u8>>,
pub lookup: BTreeMap<([u8; 32], u32), Vec<u32>>,
pub info: ServiceInfo,
}Expand description
The service accounts (δ)
Fields§
§index: u32The index of the service account (i)
storage: BTreeMap<Vec<u8>, Vec<u8>>storage of the service account (s)
preimage: BTreeMap<[u8; 32], Vec<u8>>The preimage of the service account (p)
lookup: BTreeMap<([u8; 32], u32), Vec<u32>>Preimage lookup dictionary (l)
info: ServiceInfoThe info of the service account
Implementations§
Source§impl ServiceAccount
impl ServiceAccount
Sourcepub fn new(gas: GasLimit) -> ServiceAccount
pub fn new(gas: GasLimit) -> ServiceAccount
Create a new service account
Sourcepub fn state(&self) -> ServiceInfo
pub fn state(&self) -> ServiceInfo
The state of the service account
Trait Implementations§
Source§impl Clone for ServiceAccount
impl Clone for ServiceAccount
Source§fn clone(&self) -> ServiceAccount
fn clone(&self) -> ServiceAccount
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceAccount
impl Debug for ServiceAccount
Source§impl Default for ServiceAccount
impl Default for ServiceAccount
Source§fn default() -> ServiceAccount
fn default() -> ServiceAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceAccount
impl<'de> Deserialize<'de> for ServiceAccount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceAccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceAccount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServiceAccount
impl PartialEq for ServiceAccount
Source§impl Serialize for ServiceAccount
impl Serialize for ServiceAccount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ServiceAccount
impl StructuralPartialEq for ServiceAccount
Auto Trait Implementations§
impl Freeze for ServiceAccount
impl RefUnwindSafe for ServiceAccount
impl Send for ServiceAccount
impl Sync for ServiceAccount
impl Unpin for ServiceAccount
impl UnwindSafe for ServiceAccount
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