Skip to main content

Project

Trait Project 

Source
pub trait Project {
    // Required methods
    fn read(&self, name: &str) -> Option<String>;
    fn exists(&self, name: &str) -> bool;
    fn env(&self, key: &str) -> Option<String>;
}
Expand description

The files and environment of the project, as a view detection reads.

Required Methods§

Source

fn read(&self, name: &str) -> Option<String>

The text of a file at the project root, if it exists.

Source

fn exists(&self, name: &str) -> bool

Whether a file exists at the project root.

Source

fn env(&self, key: &str) -> Option<String>

An environment variable.

Implementors§