Struct sov_accounts::Account
source · pub struct Account<C: Context> {
pub addr: C::Address,
pub nonce: u64,
}
Expand description
An account on the rollup.
Fields§
§addr: C::Address
The address of the account.
nonce: u64
The current nonce value associated with the account.
Trait Implementations§
source§impl<C: Context> BorshDeserialize for Account<C>where
C::Address: BorshDeserialize,
u64: BorshDeserialize,
impl<C: Context> BorshDeserialize for Account<C>where C::Address: BorshDeserialize, u64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl<C: Context> BorshSerialize for Account<C>where
C::Address: BorshSerialize,
u64: BorshSerialize,
impl<C: Context> BorshSerialize for Account<C>where C::Address: BorshSerialize, u64: BorshSerialize,
source§impl<C: PartialEq + Context> PartialEq<Account<C>> for Account<C>where
C::Address: PartialEq,
impl<C: PartialEq + Context> PartialEq<Account<C>> for Account<C>where C::Address: PartialEq,
impl<C: Copy + Context> Copy for Account<C>where C::Address: Copy,
impl<C: Context> StructuralPartialEq for Account<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Account<C>where <C as Spec>::Address: RefUnwindSafe,
impl<C> Send for Account<C>
impl<C> Sync for Account<C>
impl<C> Unpin for Account<C>where <C as Spec>::Address: Unpin,
impl<C> UnwindSafe for Account<C>where <C as Spec>::Address: UnwindSafe,
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