Skip to content

Commit

Permalink
Rename RawModel to SerdeModel, make it private
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Feb 27, 2025
1 parent 7f3cbe7 commit ae7b71f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ pub struct Individual {
}

#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct RawModel {
pub annotations: Vec<Annotation>,
pub id: ModelId,
pub facts: Vec<Fact>,
pub individuals: Vec<Individual>,
struct SerdeModel {
annotations: Vec<Annotation>,
id: ModelId,
facts: Vec<Fact>,
individuals: Vec<Individual>,
}

#[derive(Deserialize, Serialize, Debug, Clone)]
Expand Down Expand Up @@ -219,10 +219,10 @@ impl GoCamModel {
}
}

pub fn gocam_parse_raw(source: &mut dyn Read) -> Result<RawModel> {
fn gocam_parse_raw(source: &mut dyn Read) -> Result<SerdeModel> {
let reader = BufReader::new(source);

let raw_model: RawModel = serde_json::from_reader(reader)?;
let raw_model: SerdeModel = serde_json::from_reader(reader)?;

Ok(raw_model)
}
Expand Down

0 comments on commit ae7b71f

Please sign in to comment.