pub struct Project { /* private fields */ }Expand description
A project that has variables linked to it via an evault.toml manifest.
Project records the location of the manifest and a human-friendly name.
Linkage details live in ProjectVar records.
§Examples
use evault_core::model::Project;
use std::path::PathBuf;
let p = Project::new("my-app", PathBuf::from("./my-app"));
assert_eq!(p.name(), "my-app");Implementations§
Source§impl Project
impl Project
Sourcepub fn new(name: impl Into<String>, path: PathBuf) -> Self
pub fn new(name: impl Into<String>, path: PathBuf) -> Self
Create a new Project with a fresh identifier.
path is the directory that contains (or will contain) the
evault.toml manifest.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
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