Struct brevdash_data::Repository [−][src]
pub struct Repository { pub description: RootDescription, // some fields omitted }
Expand description
Definition of a brevdash data repository.
Fields
description: RootDescription
The root description string.
Implementations
Create a repository at a directory path.
The directory must already exist and be writable.
Store the description file inside the repository.
pub fn project_datapoint_artifacts_directory_path(
&self,
project_id: &str,
date: NaiveDate
) -> PathBuf
pub fn project_datapoint_artifacts_directory_path(
&self,
project_id: &str,
date: NaiveDate
) -> PathBuf
Get the path for the artifacts of a project at a specific date.
Get the path for the artifacts of a characteristic at a specific date.
Get the path for an artifact.
Load the list of project ids inside the repository.
Query whether the repository contains a project with a specific id.
pub fn store_project_description(
&self,
project_id: &str,
description: &ProjectDescription
) -> Result<()>
pub fn store_project_description(
&self,
project_id: &str,
description: &ProjectDescription
) -> Result<()>
Store the description of a project.
Load the description of a project by id.
Load the descriptions for all projects.
Query whether the repository contains a datapoint at a specific date.
Load a list of all datapoint dates for a specific project id.
Store a datapoint at a specific date.
Load a datapoint at a specific date.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository