github.com/tada-team/tdproto@v1.51.57/color_rule.go (about)

     1  package tdproto
     2  
     3  // Set of rules to apply to tasks for coloring.
     4  type ColorRule struct {
     5  	// Rule id
     6  	Uid string `json:"uid"`
     7  
     8  	// Rule priority
     9  	Priority int `json:"priority"`
    10  
    11  	// Rule description
    12  	Description string `json:"description,omitempty"`
    13  
    14  	// Color index
    15  	ColorIndex uint16 `json:"color_index"`
    16  
    17  	// Project filter enabled
    18  	ProjectEnabled *bool `json:"section_enabled,omitempty"` // TODO: rename to "project_enabled
    19  
    20  	// Project id if project filter enabled
    21  	Project string `json:"section,omitempty"` // TODO: rename to "project"
    22  
    23  	// Tags filter enabled
    24  	TagsEnabled *bool `json:"tags_enabled,omitempty"`
    25  
    26  	// Tag ids if tags filter enabled
    27  	Tags []string `json:"tags,omitempty"`
    28  
    29  	// Task status
    30  	TaskStatus string `json:"task_status,omitempty"`
    31  
    32  	// Task importance filter enabled
    33  	TaskImportanceEnabled *bool `json:"task_importance_enabled,omitempty"`
    34  
    35  	// Task importance if task importance filter enabled
    36  	TaskImportance *int `json:"task_importance,omitempty"`
    37  
    38  	// Task urgency filter enabled
    39  	TaskUrgencyEnabled *bool `json:"task_urgency_enabled,omitempty"`
    40  
    41  	// Task urgency if task urgency filter enabled
    42  	TaskUrgency *int `json:"task_urgency,omitempty"`
    43  }