pub struct Project {Show 22 fields
pub id: u64,
pub name: String,
pub identifier: String,
pub description: Option<String>,
pub homepage: Option<String>,
pub is_public: Option<bool>,
pub parent: Option<ProjectEssentials>,
pub inherit_members: Option<bool>,
pub default_assignee: Option<AssigneeEssentials>,
pub default_version: Option<VersionEssentials>,
pub default_version_id: Option<u64>,
pub tracker_ids: Option<Vec<u64>>,
pub enabled_module_names: Option<Vec<String>>,
pub issue_custom_field_id: Option<Vec<u64>>,
pub custom_field_values: Option<HashMap<u64, String>>,
pub status: u64,
pub created_on: OffsetDateTime,
pub updated_on: OffsetDateTime,
pub issue_categories: Option<Vec<IssueCategoryEssentials>>,
pub time_entry_activities: Option<Vec<TimeEntryActivityEssentials>>,
pub enabled_modules: Option<Vec<Module>>,
pub trackers: Option<Vec<TrackerEssentials>>,
}
Expand description
a type for projects to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields
id: u64
numeric id
name: String
display name
identifier: String
URL slug
description: Option<String>
description
homepage: Option<String>
the project homepage
is_public: Option<bool>
is the project public (visible to anonymous users)
parent: Option<ProjectEssentials>
the parent project (id and name)
inherit_members: Option<bool>
will the project inherit members from its ancestors
default_assignee: Option<AssigneeEssentials>
the default user/group issues in this project are assigned to
default_version: Option<VersionEssentials>
the default version for issues in this project
default_version_id: Option<u64>
ID of the default version. It works only with existing shared versions
tracker_ids: Option<Vec<u64>>
trackers to enable in the project
enabled_module_names: Option<Vec<String>>
modules to enable in the project
issue_custom_field_id: Option<Vec<u64>>
custom issue fields to enable in the project
custom_field_values: Option<HashMap<u64, String>>
values for custom fields
status: u64
archived or not?
created_on: OffsetDateTime
The time when this project was created
updated_on: OffsetDateTime
The time when this project was last updated
issue_categories: Option<Vec<IssueCategoryEssentials>>
issue categories (only with include parameter)
time_entry_activities: Option<Vec<TimeEntryActivityEssentials>>
time entry activities (only with include parameter)
enabled_modules: Option<Vec<Module>>
enabled modules in this project (only with include parameter)
trackers: Option<Vec<TrackerEssentials>>
trackers in this project (only with include parameter)
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Project
impl UnwindSafe for Project
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more