index : license-api-rs.git

ascending towards madness

author holly sparkles <sparkles@holly.sh> 2023-10-02 18:02:26.0 +00:00:00
committer holly sparkles <sparkles@holly.sh> 2023-10-02 18:02:26.0 +00:00:00
commit
8f2e2264df72bad622a7fba7eeca4d031abb5e00 [patch]
tree
4f2d8d37c1882581a0aa3176a9eb491d8d37f33c
parent
094ff04c022024ab33ae99b570a7416af4dcd682
download
8f2e2264df72bad622a7fba7eeca4d031abb5e00.tar.gz

fix: make license db structs and fields public



Diff

 src/data.rs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/data.rs b/src/data.rs
index 4e1fdcc..2d8fe1c 100644
--- a/src/data.rs
+++ b/src/data.rs
@@ -4,7 +4,7 @@ use serde::Deserialize;

#[derive(Debug, Deserialize)]
pub struct LicenseDatabase {
    licenses: Vec<License>,
    pub licenses: Vec<License>,
}

impl LicenseDatabase {
@@ -17,8 +17,8 @@ impl LicenseDatabase {
}

#[derive(Debug, Deserialize, Clone)]
struct License {
    id: String,
    filename: String,
    description: String,
pub struct License {
    pub id: String,
    pub filename: String,
    pub description: String,
}