pub struct Project {
pub iri: String,
pub shortcode: String,
pub shortname: String,
pub longname: Option<String>,
pub status: ProjectStatus,
pub data_models: usize,
}Expand description
A project as shown by dsp vre project list — the lean index projection.
Rich detail (description, keywords, licences, …) belongs to the future
describe model, not here. No serde derive: wire deserialization stays
in src/client/http.rs (the private ProjectListItemDto). See ADR-0001
and ADR-0008.
Fields§
§iri: StringThe project’s IRI (e.g. http://rdfh.ch/projects/0001).
shortcode: StringFour-hex-digit shortcode (e.g. 0001).
shortname: StringHuman-readable shortname (e.g. anything).
longname: Option<String>Human-readable long name, if the server supplies one.
status: ProjectStatusWhether the project is currently active on the server.
data_models: usizeNumber of data-models (DSP-API “ontologies”) attached to the project.
Trait Implementations§
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnsafeUnpin for Project
impl UnwindSafe for Project
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.