pub struct StateInit {
pub split_depth: Option<SplitDepth>,
pub special: Option<SpecialFlags>,
pub code: Option<Cell>,
pub data: Option<Cell>,
pub libraries: Dict<HashBytes, SimpleLib>,
}Expand description
Deployed account state.
Fields§
§split_depth: Option<SplitDepth>Optional split depth for large smart contracts.
special: Option<SpecialFlags>Optional special contract flags.
code: Option<Cell>Optional contract code.
data: Option<Cell>Optional contract data.
libraries: Dict<HashBytes, SimpleLib>Libraries used in smart-contract.
Implementations§
Source§impl StateInit
impl StateInit
Sourcepub const fn exact_size_const(&self) -> Size
pub const fn exact_size_const(&self) -> Size
Exact size of this value when it is stored in slice.
Sourcepub const fn reference_count(&self) -> u8
pub const fn reference_count(&self) -> u8
Returns the number of references that this struct occupies.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StateInit
impl<'de> Deserialize<'de> for StateInit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ExactSize for StateInit
impl ExactSize for StateInit
Source§fn exact_size(&self) -> Size
fn exact_size(&self) -> Size
Exact size of the value when it is stored in a slice.
Source§impl Store for StateInit
impl Store for StateInit
Source§fn store_into(
&self,
__builder: &mut CellBuilder,
__context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, __builder: &mut CellBuilder, __context: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for StateInit
impl StructuralPartialEq for StateInit
Auto Trait Implementations§
impl Freeze for StateInit
impl !RefUnwindSafe for StateInit
impl Send for StateInit
impl Sync for StateInit
impl Unpin for StateInit
impl !UnwindSafe for StateInit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.