Struct ethers_solc::artifacts::Source [−][src]
pub struct Source {
pub content: String,
}
Fields
content: String
Implementations
Finds all source files under the given dir path and reads them all
pub fn read_all<T, I>(files: I) -> Result<Sources, SolcIoError> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
pub fn read_all<T, I>(files: I) -> Result<Sources, SolcIoError> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
Reads all files
Generate a non-cryptographically secure checksum of the file’s content
Returns all import statements of the file
async version of Self::read
Finds all source files under the given dir path and reads them all
pub async fn async_read_all<T, I>(files: I) -> Result<Sources, SolcIoError> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
pub async fn async_read_all<T, I>(files: I) -> Result<Sources, SolcIoError> where
I: IntoIterator<Item = T>,
T: Into<PathBuf>,
async version of Self::read_all
Trait Implementations
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 RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more