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

     1  package tdapi
     2  
     3  // Task color rule form
     4  type ColorRule struct {
     5  	// Rule priority
     6  	Priority *int `json:"priority,omitempty"`
     7  
     8  	// Color index
     9  	ColorIndex *uint16 `json:"color_index,omitempty"`
    10  
    11  	// Rule description
    12  	Description string `json:"description"`
    13  
    14  	// Task status
    15  	TaskStatus *string `json:"task_status,omitempty"`
    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  	// Task importance filter enabled
    24  	TaskImportanceEnabled bool `json:"task_importance_enabled,omitempty"`
    25  
    26  	// Task importance if task importance filter enabled
    27  	TaskImportance *int `json:"task_importance,omitempty"`
    28  
    29  	// Task urgency filter enabled
    30  	TaskUrgencyEnabled bool `json:"task_urgency_enabled,omitempty"`
    31  
    32  	// Task urgency if task urgency filter enabled
    33  	TaskUrgency *int `json:"task_urgency,omitempty"`
    34  
    35  	// Tags filter enabled
    36  	TagsEnabled bool `json:"tags_enabled,omitempty"`
    37  
    38  	// Tag ids if tags filter enabled
    39  	Tags *[]string `json:"tags,omitempty"`
    40  }