WilkinsonK / xapi-oxidized

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

Implement builders for `models::admin` models #33

Open WilkinsonK opened 2 months ago

WilkinsonK commented 2 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 portion, I would like to see implementations for the models represented by the system administration data models.