pub struct Project {
pub id: NativeId,
pub title: String,
pub content: Option<String>,
pub status: Status,
pub labels: Vec<Label>,
pub url: Option<String>,
pub location: Option<Location>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub metadata: BTreeMap<String, Value>,
pub repositories: Vec<Repository>,
pub classification: Classification,
}Expand description
A grouping of tasks, shaped like a Task without a parent of its own.
Fields§
§id: NativeIdThe source’s own opaque identifier.
title: StringThe one-line summary a user recognises the project by.
content: Option<String>The long-form body, when the source has one.
status: StatusThe source’s status, normalised and preserved.
labels: Vec<Label>Inline rather than by id, for the same reason as on Task.
url: Option<String>Where a human can open this project.
location: Option<Location>Where this project is, on exactly the terms of Task::location.
created_at: Option<DateTime<Utc>>When the source says the project was created.
updated_at: Option<DateTime<Utc>>When the source says the project last changed.
metadata: BTreeMap<String, Value>Caller-defined attributes, preserving their JSON types, on the same terms as
Task::metadata.
repositories: Vec<Repository>Normalized repository origins this project concerns, in source order and without repeats.
classification: ClassificationWho may read this project, as it was declared, on the terms of
Task::classification. A project holding a private task or document is private
however this reads, and the engine records it so when it writes the project.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Project
impl JsonSchema for Project
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more