bleur 0.0.6

That buddy that will get everything ready for you
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use std::path::PathBuf;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Collection {
    path: String,
    description: String,
    welcome: String,
}

impl Collection {
    pub fn path(&self, base: PathBuf) -> PathBuf {
        let addition = self.path.replace("./", "");

        base.join(addition)
    }
}