WilkinsonK / xapi-oxidized

XNAT web API client
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Implement builders for `models::data` models #34

Open WilkinsonK opened 4 months ago

WilkinsonK commented 4 months ago

As a developer using this library, I would like to be able to instantiate models using the builder method. While doing this exact like like so works fine:

use oxinat_core::models::Subject;

let mut subject = Subject::default();
model.project.clone_from(&"SOME_PROJECT".into());
...

It leaves an enormous amount of overhead/boilerplate which can be abstracted away since these operations are so common place.

Specifically for this story, I would like to see implementations for the common data models.