Skip to content

Commit

Permalink
Rename GoCamModel to GoCamRawModel
Browse files Browse the repository at this point in the history
We'll use "GoCamModel" for the higher level model.

Refs pombase/pombase-chado#1262
  • Loading branch information
kimrutherford committed Feb 27, 2025
1 parent ae7b71f commit c2b78e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct SerdeModel {
}

#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct GoCamModel {
pub struct GoCamRawModel {
_annotations: Vec<Annotation>,
_id: ModelId,
_facts: BTreeMap<FactId, Fact>,
Expand All @@ -174,7 +174,7 @@ fn annotation_values(annotations: Box<dyn Iterator<Item = &Annotation> + '_>,
.collect()
}

impl GoCamModel {
impl GoCamRawModel {
pub fn id(&self) -> &ModelId {
&self._id
}
Expand Down Expand Up @@ -250,7 +250,7 @@ fn gocam_parse_raw(source: &mut dyn Read) -> Result<SerdeModel> {
/// }
/// }
/// ```
pub fn gocam_parse(source: &mut dyn Read) -> Result<GoCamModel> {
pub fn gocam_parse(source: &mut dyn Read) -> Result<GoCamRawModel> {
let raw_model = gocam_parse_raw(source)?;

let mut fact_map = BTreeMap::new();
Expand All @@ -267,7 +267,7 @@ pub fn gocam_parse(source: &mut dyn Read) -> Result<GoCamModel> {
individual_map.insert(individual.id.clone(), individual);
}

Ok(GoCamModel {
Ok(GoCamRawModel {
_annotations: raw_model.annotations,
_id: raw_model.id,
_facts: fact_map,
Expand Down

0 comments on commit c2b78e4

Please sign in to comment.