pub struct Project {
pub id: String,
pub name: String,
pub description: String,
pub licensing_ontologies: Vec<String>,
pub created_at_unix: u32,
pub created_at_instant: Option<InstantBridge>,
}Expand description
A cooperative project — a named unit of shared work.
Fields§
§id: String§name: String§description: String§licensing_ontologies: Vec<String>Semantic URIs defining the licensing constraints (e.g. human rights values, trade rules).
created_at_unix: u32§created_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over created_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
Implementations§
Source§impl Project
impl Project
Sourcepub fn new(
name: impl Into<String>,
description: impl Into<String>,
licensing_ontologies: Vec<String>,
created_at_unix: u32,
) -> Project
pub fn new( name: impl Into<String>, description: impl Into<String>, licensing_ontologies: Vec<String>, created_at_unix: u32, ) -> Project
Creates a new instance.
Sourcepub fn created_at(&self) -> InstantBridge
pub fn created_at(&self) -> InstantBridge
Resolve the created-at instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Project, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Project, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Project
Source§impl Serialize for Project
impl Serialize for Project
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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