Struct multisol_structs::Contract[][src]

pub struct Contract { /* fields omitted */ }

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]

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]

Generates the struct instance starting from import path captured in another contract.

Trait Implementations

impl Debug for Contract[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.