pub struct Milestone {
pub index: usize,
pub title: String,
pub description: String,
pub deadline: Option<String>,
pub created: String,
pub updated: String,
pub closed: String,
pub state: OpenCloseState,
}
Expand description
Milestone associated to a repository within a forge
Fields
index: usize
Unique identifier
title: String
Short description
description: String
Long, multiline, description
deadline: Option<String>
Deadline after which the milestone is overdue
created: String
Creating time
updated: String
Last update time
closed: String
The last time ‘state’ changed to ‘closed’
state: OpenCloseState
A ‘closed’ milestone will not see any activity in the future, otherwise it is ‘open’.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Milestone
impl<'de> Deserialize<'de> for Milestone
sourcefn 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
impl Eq for Milestone
impl StructuralEq for Milestone
impl StructuralPartialEq for Milestone
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more