pub struct Label {
pub id: LabelId,
pub name: String,
pub color: LabelColor,
pub description: Option<String>,
pub open_issues_count: Option<u64>,
pub closed_issues_count: Option<u64>,
pub open_merge_requests_count: Option<u64>,
pub subscribed: bool,
pub priority: Option<u64>,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
An label on a project.
Fields§
§id: LabelId
👎Deprecated since 0.1609.0: define deserialization types in client code
The Id of the label.
name: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The name of the label.
color: LabelColor
👎Deprecated since 0.1609.0: define deserialization types in client code
The color of the label.
description: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
The description of the label.
open_issues_count: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code
The number of opened issues associated with the label.
closed_issues_count: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code
the number of closed issues associated with the label.
open_merge_requests_count: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code
The number of open merge request associated with the label.
subscribed: bool
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether or not the account connecting has subscribed to the label.
priority: Option<u64>
👎Deprecated since 0.1609.0: define deserialization types in client code
The priority of the label.
Implementations§
source§impl Label
impl Label
sourcepub fn new(name: String, color: LabelColor) -> Label
👎Deprecated since 0.1609.0: define deserialization types in client code
pub fn new(name: String, color: LabelColor) -> Label
Create a new Label: it needs at least a name and a color. ProjectId is mandatory for Gitlab API
sourcepub fn with_description(self, description: String) -> Label
👎Deprecated since 0.1609.0: define deserialization types in client code
pub fn with_description(self, description: String) -> Label
Complements the label with optional parameter: description
sourcepub fn with_priority(self, priority: u64) -> Label
👎Deprecated since 0.1609.0: define deserialization types in client code
pub fn with_priority(self, priority: u64) -> Label
Complements the label with optional parameter: priority
Trait Implementations§
source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
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
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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