Struct gitlab::types::Label [−][src]
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>,
}Expand description
An label on a project.
Fields
id: LabelIdThe Id of the label.
name: StringThe name of the label.
color: LabelColorThe color of the label.
description: Option<String>The description of the label.
open_issues_count: Option<u64>The number of opened issues associated with the label.
closed_issues_count: Option<u64>the number of closed issues associated with the label.
open_merge_requests_count: Option<u64>The number of open merge request associated with the label.
subscribed: boolWhether or not the account connecting has subscribed to the label.
priority: Option<u64>The priority of the label.
Implementations
Create a new Label: it needs at least a name and a color. ProjectId is mandatory for Gitlab API
Complements the label with optional parameter: description
Complements the label with optional parameter: priority
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 Label
impl UnwindSafe for Label
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
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