multisol_structs/visit.rs
1use std::ffi::OsString;
2use std::path::PathBuf;
3
4#[derive(Debug)]
5pub struct Visit {
6 /// Name of the contract file
7 file_name: OsString,
8 /// Absolute path to the contract on disk
9 full_path: PathBuf,
10}
11
12impl Visit {
13 pub fn file_name(&self) -> &OsString {
14 &self.file_name
15 }
16
17 pub fn full_path(&self) -> &PathBuf {
18 &self.full_path
19 }
20}
21
22impl Visit {
23 pub fn new(file_name: OsString, full_path: PathBuf) -> Visit {
24 Visit { file_name, full_path }
25 }
26}