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: LabelId

The Id of the label.

name: String

The name of the label.

color: LabelColor

The 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: bool

Whether 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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