Struct fuel_core_chain_config::config::ContractConfig
source · pub struct ContractConfig {
pub code: Vec<u8>,
pub salt: Salt,
pub state: Option<Vec<(Bytes32, Bytes32)>>,
pub balances: Option<Vec<(AssetId, u64)>>,
}
Fields§
§code: Vec<u8>
§salt: Salt
§state: Option<Vec<(Bytes32, Bytes32)>>
§balances: Option<Vec<(AssetId, u64)>>
Implementations§
Trait Implementations§
source§impl Clone for ContractConfig
impl Clone for ContractConfig
source§fn clone(&self) -> ContractConfig
fn clone(&self) -> ContractConfig
Returns a copy 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 ContractConfig
impl Debug for ContractConfig
source§impl<'de> Deserialize<'de> for ContractConfig
impl<'de> Deserialize<'de> for ContractConfig
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 PartialEq<ContractConfig> for ContractConfig
impl PartialEq<ContractConfig> for ContractConfig
source§fn eq(&self, other: &ContractConfig) -> bool
fn eq(&self, other: &ContractConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContractConfig
impl Serialize for ContractConfig
impl Eq for ContractConfig
impl StructuralEq for ContractConfig
impl StructuralPartialEq for ContractConfig
Auto Trait Implementations§
impl RefUnwindSafe for ContractConfig
impl Send for ContractConfig
impl Sync for ContractConfig
impl Unpin for ContractConfig
impl UnwindSafe for ContractConfig
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more