[−][src]Struct multisol_structs::Contract
Implementations
impl Contract[src]
pub fn directory(&self) -> &PathBuf[src]
pub fn external(&self) -> bool[src]
pub fn file_name(&self) -> &OsString[src]
pub fn full_path(&self) -> &PathBuf[src]
pub fn source_code(&self) -> &str[src]
impl Contract[src]
pub fn set_source_code(&mut self, source_code: String)[src]
impl Contract[src]
pub fn new(
directory: PathBuf,
external: bool,
file_name: OsString,
full_path: PathBuf,
source_code: String
) -> Contract[src]
directory: PathBuf,
external: bool,
file_name: OsString,
full_path: PathBuf,
source_code: String
) -> Contract
pub fn from_cli(contract_path: &PathBuf) -> Result<Contract>[src]
Generates the struct instance starting from the user provided path to the contract.
pub fn from_import_path(
ancestor_contract: &Contract,
import_path: &PathBuf
) -> Result<Contract>[src]
ancestor_contract: &Contract,
import_path: &PathBuf
) -> Result<Contract>
Generates the struct instance starting from import path captured in another contract.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Contract[src]
impl Send for Contract[src]
impl Sync for Contract[src]
impl Unpin for Contract[src]
impl UnwindSafe for Contract[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,