pub struct Config {
pub manifest_dir: PathBuf,
pub manifest_path: PathBuf,
pub target_dir: PathBuf,
pub spec: Spec,
}
Expand description
Contains a configuration that is passed to the implementation of each
(relevant) CLI command. A notable exception is polyhorn new
, which doesn’t
require a pre-existing Polyhorn.toml
manifest file.
Fields§
§manifest_dir: PathBuf
Contains the path of the directory that stores the Polyhorn.toml
file.
manifest_path: PathBuf
Contains the path of the Polyhorn.toml
file itself.
target_dir: PathBuf
Contains the path of the directory that build products should be written to.
spec: Spec
Contains the specification that is read from the Polyhorn.toml
file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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