pub struct ContractMetadata {
pub version: String,
pub security_flags: SecurityFlags,
pub optimization_level: OptLevel,
pub source_hash: Option<[u8; 32]>,
pub source_file: Option<String>,
pub source_code: Option<String>,
}Fields§
§version: String§security_flags: SecurityFlags§optimization_level: OptLevel§source_hash: Option<[u8; 32]>§source_file: Option<String>§source_code: Option<String>Trait Implementations§
Source§impl Clone for ContractMetadata
impl Clone for ContractMetadata
Source§fn clone(&self) -> ContractMetadata
fn clone(&self) -> ContractMetadata
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 ContractMetadata
impl Debug for ContractMetadata
Source§impl Default for ContractMetadata
impl Default for ContractMetadata
Source§fn default() -> ContractMetadata
fn default() -> ContractMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractMetadata
impl<'de> Deserialize<'de> for ContractMetadata
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
Auto Trait Implementations§
impl Freeze for ContractMetadata
impl RefUnwindSafe for ContractMetadata
impl Send for ContractMetadata
impl Sync for ContractMetadata
impl Unpin for ContractMetadata
impl UnsafeUnpin for ContractMetadata
impl UnwindSafe for ContractMetadata
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