pub struct Project {Show 23 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>>,
pub issue_custom_fields: Option<Vec<CustomFieldName>>,
}
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)
issue_custom_fields: Option<Vec<CustomFieldName>>
custom field ids and names in this project (only with include parameter)
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 From<&Project> for ProjectEssentials
impl From<&Project> for ProjectEssentials
Source§impl From<Project> for ProjectEssentials
impl From<Project> for ProjectEssentials
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 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
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
key
and return true
if they are equal.