pub struct CustomFieldBase {
Show 18 fields pub gid: Option<String>, pub resource_type: Option<String>, pub name: Option<String>, pub resource_subtype: Option<ResourceSubtype>, pub _type: Option<Type>, pub enum_options: Option<Vec<EnumOption>>, pub enabled: Option<bool>, pub number_value: Option<f32>, pub text_value: Option<String>, pub display_value: Option<String>, pub description: Option<String>, pub precision: Option<i32>, pub format: Option<Format>, pub currency_code: Option<String>, pub custom_label: Option<String>, pub custom_label_position: Option<CustomLabelPosition>, pub is_global_to_workspace: Option<bool>, pub has_notifications_enabled: Option<bool>,
}

Fields

gid: Option<String>

Globally unique identifier of the resource, as a string.

resource_type: Option<String>

The base type of this resource.

name: Option<String>

The name of the custom field.

resource_subtype: Option<ResourceSubtype>

The type of the custom field. Must be one of the given values.

_type: Option<Type>

Deprecated: new integrations should prefer the resource_subtype field. The type of the custom field. Must be one of the given values.

enum_options: Option<Vec<EnumOption>>

Conditional. Only relevant for custom fields of type enum. This array specifies the possible values which an enum custom field can adopt. To modify the enum options, refer to working with enum options.

enabled: Option<bool>

Conditional. Determines if the custom field is enabled or not.

number_value: Option<f32>

Conditional. This number is the value of a number custom field.

text_value: Option<String>

Conditional. This string is the value of a text custom field.

display_value: Option<String>

A string representation for the value of the custom field. Integrations that don’t require the underlying type should use this field to read values. Using this field will future-proof an app against new custom field types.

description: Option<String>

Opt In. The description of the custom field.

precision: Option<i32>

Only relevant for custom fields of type ‘Number’. This field dictates the number of places after the decimal to round to, i.e. 0 is integer values, 1 rounds to the nearest tenth, and so on. Must be between 0 and 6, inclusive. For percentage format, this may be unintuitive, as a value of 0.25 has a precision of 0, while a value of 0.251 has a precision of 1. This is due to 0.25 being displayed as 25%. The identifier format will always have a precision of 0.

format: Option<Format>

The format of this custom field.

currency_code: Option<String>

ISO 4217 currency code to format this custom field. This will be null if the format is not currency.

custom_label: Option<String>

This is the string that appears next to the custom field value. This will be null if the format is not custom.

custom_label_position: Option<CustomLabelPosition>

Only relevant for custom fields with custom format. This depicts where to place the custom label. This will be null if the format is not custom.

is_global_to_workspace: Option<bool>

This flag describes whether this custom field is available to every container in the workspace. Before project-specific custom fields, this field was always true.

has_notifications_enabled: Option<bool>

Conditional. This flag describes whether a follower of a task with this field should receive inbox notifications from changes to this field.

Implementations

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
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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