pub struct ContractIdentifier {
pub path: String,
pub name: Option<String>,
pub full_path: String,
}Expand description
This structure simplifies passing the contract identifiers through the compilation pipeline.
Fields§
§path: StringThe absolute file path.
name: Option<String>The contract name. Is set for Solidity contracts only. Otherwise it would be equal to the file name.
full_path: StringThe full contract identifier.
For Solidity, The format is <absolute file path>:<contract name>.
For other languages, <absolute file path>.
Implementations§
Trait Implementations§
Source§impl Clone for ContractIdentifier
impl Clone for ContractIdentifier
Source§fn clone(&self) -> ContractIdentifier
fn clone(&self) -> ContractIdentifier
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 ContractIdentifier
impl Debug for ContractIdentifier
Source§impl<'de> Deserialize<'de> for ContractIdentifier
impl<'de> Deserialize<'de> for ContractIdentifier
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 ContractIdentifier
impl RefUnwindSafe for ContractIdentifier
impl Send for ContractIdentifier
impl Sync for ContractIdentifier
impl Unpin for ContractIdentifier
impl UnsafeUnpin for ContractIdentifier
impl UnwindSafe for ContractIdentifier
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