Struct asana::models::custom_field_compact::CustomFieldCompact
source · [−]pub struct CustomFieldCompact {
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>,
}
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.
Implementations
sourceimpl CustomFieldCompact
impl CustomFieldCompact
pub fn new() -> CustomFieldCompact
Trait Implementations
sourceimpl Clone for CustomFieldCompact
impl Clone for CustomFieldCompact
sourcefn clone(&self) -> CustomFieldCompact
fn clone(&self) -> CustomFieldCompact
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more