pub struct Project {
pub vault_path: PathBuf,
pub config_path: PathBuf,
}Expand description
Holds paths to project resources under .cred/.
Fields§
§vault_path: PathBuf§config_path: PathBufImplementations§
Source§impl Project
impl Project
Sourcepub fn load_config(&self) -> Result<ProjectConfig>
pub fn load_config(&self) -> Result<ProjectConfig>
Load the project configuration from .cred/project.toml (defaulting if absent).
Sourcepub fn get_master_key(&self) -> Result<[u8; 32]>
pub fn get_master_key(&self) -> Result<[u8; 32]>
Fetch the 32-byte master key for this project (env override for CI, else OS keyring).
pub fn add_key_to_scopes( &self, _scope_names: &[String], _key: &str, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin 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