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>,
}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.
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Project
impl JsonSchema for Project
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl 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