Struct gitlab::types::Milestone [−][src]
pub struct Milestone { pub id: MilestoneId, pub iid: MilestoneInternalId, pub project_id: Option<ProjectId>, pub group_id: Option<GroupId>, pub title: String, pub description: Option<String>, pub state: MilestoneState, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, pub due_date: Option<NaiveDate>, pub start_date: Option<NaiveDate>, }
A milestone in a project.
Fields
id: MilestoneId
The ID of the milestone.
iid: MilestoneInternalId
The user-visible ID of the milestone.
project_id: Option<ProjectId>
The ID of the project if this is a project milestone.
group_id: Option<GroupId>
The ID of the group if this is a group milestone.
title: String
The title of the milestone.
description: Option<String>
The description of the milestone.
state: MilestoneState
The state of the milestone.
created_at: DateTime<Utc>
When the milestone was created.
updated_at: DateTime<Utc>
When the milestone was last updated.
due_date: Option<NaiveDate>
When the milestone is due.
start_date: Option<NaiveDate>
When the milestone was started.
Implementations
impl Milestone
[src]
impl Milestone
[src]pub fn new_for_project(project_id: ProjectId, title: String) -> Milestone
[src]
pub fn new_for_project(project_id: ProjectId, title: String) -> Milestone
[src]Create a new blank milestone: it needs at least the ProjectId and title ProjectId and title are mandatory for new milestone API of Gitlab
pub fn new_for_group(group_id: GroupId, title: String) -> Milestone
[src]
pub fn new_for_group(group_id: GroupId, title: String) -> Milestone
[src]Create a new blank group milestone: it needs at least the GroupId and title GroupId and title are mandatory for new milestone API of Gitlab
pub fn with_description(self, description: String) -> Milestone
[src]
pub fn with_description(self, description: String) -> Milestone
[src]Complements the milestone with optional paramater: description
pub fn with_due_date(self, due_date: NaiveDate) -> Milestone
[src]
pub fn with_due_date(self, due_date: NaiveDate) -> Milestone
[src]Complements the milestone with optional parameter: due_date
pub fn with_start_date(self, start_date: NaiveDate) -> Milestone
[src]
pub fn with_start_date(self, start_date: NaiveDate) -> Milestone
[src]Complements the milestone with optional parameter: start_date
Trait Implementations
impl<'de> Deserialize<'de> for Milestone
[src]
impl<'de> Deserialize<'de> for Milestone
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Milestone
impl Send for Milestone
impl Sync for Milestone
impl Unpin for Milestone
impl UnwindSafe for Milestone
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,