Struct leo_package::inputs::input::InputFile
source · pub struct InputFile {
pub package_name: String,
}Fields§
§package_name: StringImplementations§
source§impl InputFile
impl InputFile
pub fn new(package_name: &str) -> Self
pub fn filename(&self) -> String
pub fn exists_at(&self, path: &Path) -> bool
sourcepub fn read_from<'a>(&self, path: &'a Path) -> Result<(String, Cow<'a, Path>)>
pub fn read_from<'a>(&self, path: &'a Path) -> Result<(String, Cow<'a, Path>)>
Reads the program input variables from the given file path if it exists.
pub fn setup_file_path<'a>(&self, path: &'a Path) -> Cow<'a, Path>
Trait Implementations§
source§impl<'de> Deserialize<'de> for InputFile
impl<'de> Deserialize<'de> for InputFile
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 RefUnwindSafe for InputFile
impl Send for InputFile
impl Sync for InputFile
impl Unpin for InputFile
impl UnwindSafe for InputFile
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