pub struct CustomFieldDefinitionJsonBean {
pub name: String,
pub description: Option<String>,
pub type: Type,
pub searcher_key: Option<SearcherKey>,
}Fields§
§name: StringThe name of the custom field, which is displayed in Jira. This is not the unique identifier.
description: Option<String>The description of the custom field, which is displayed in Jira.
type: TypeThe type of the custom field. For example, com.atlassian.jira.plugin.system.customfieldtypes:grouppicker. * cascadingselect: Allows multiple values to be selected using two select lists * datepicker: Stores a date using a picker control * datetime: Stores a date with a time component * float: Stores and validates a numeric (floating point) input * grouppicker: Stores a user group using a picker control * importid: A read-only field that stores the previous ID of the issue from the system that it was imported from * labels: Stores labels * multicheckboxes: Stores multiple values using checkboxes * multigrouppicker: Stores multiple user groups using a picker control * multiselect: Stores multiple values using a select list * multiuserpicker: Stores multiple users using a picker control * multiversion: Stores multiple versions from the versions available in a project using a picker control * project: Stores a project from a list of projects that the user is permitted to view * radiobuttons: Stores a value using radio buttons * readonlyfield: Stores a read-only text value, which can only be populated via the API * select: Stores a value from a configurable list of options * textarea: Stores a long text string using a multiline text area * textfield: Stores a text string using a single-line text box * url: Stores a URL * userpicker: Stores a user using a picker control * version: Stores a version using a picker control
searcher_key: Option<SearcherKey>The searcher defines the way the field is searched in Jira. For example, com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher. The search UI (basic search and JQL search) will display different operations and values for the field, based on the field searcher. You must specify a searcher that is valid for the field type, as listed below (abbreviated values shown): * cascadingselect: cascadingselectsearcher * datepicker: daterange * datetime: datetimerange * float: exactnumber or numberrange * grouppicker: grouppickersearcher * importid: exactnumber or numberrange * labels: labelsearcher * multicheckboxes: multiselectsearcher * multigrouppicker: multiselectsearcher * multiselect: multiselectsearcher * multiuserpicker: userpickergroupsearcher * multiversion: versionsearcher * project: projectsearcher * radiobuttons: multiselectsearcher * readonlyfield: textsearcher * select: multiselectsearcher * textarea: textsearcher * textfield: textsearcher * url: exacttextsearcher * userpicker: userpickergroupsearcher * version: versionsearcher
Implementations§
Source§impl CustomFieldDefinitionJsonBean
impl CustomFieldDefinitionJsonBean
pub fn new(name: String, type: Type) -> CustomFieldDefinitionJsonBean
Trait Implementations§
Source§impl Clone for CustomFieldDefinitionJsonBean
impl Clone for CustomFieldDefinitionJsonBean
Source§fn clone(&self) -> CustomFieldDefinitionJsonBean
fn clone(&self) -> CustomFieldDefinitionJsonBean
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CustomFieldDefinitionJsonBean
impl Default for CustomFieldDefinitionJsonBean
Source§fn default() -> CustomFieldDefinitionJsonBean
fn default() -> CustomFieldDefinitionJsonBean
Source§impl<'de> Deserialize<'de> for CustomFieldDefinitionJsonBean
impl<'de> Deserialize<'de> for CustomFieldDefinitionJsonBean
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>,
Source§impl PartialEq for CustomFieldDefinitionJsonBean
impl PartialEq for CustomFieldDefinitionJsonBean
Source§fn eq(&self, other: &CustomFieldDefinitionJsonBean) -> bool
fn eq(&self, other: &CustomFieldDefinitionJsonBean) -> bool
self and other values to be equal, and is used by ==.