pub enum CustomFieldValue {
}Expand description
Enum com todos os 18 tipos de valores de custom fields
⚠️ CRÍTICO: Checkbox usa String(“true”/“false”), NÃO bool! ⚠️ CRÍTICO: Timestamps são i64 em MILISSEGUNDOS!
Variants§
Text(String)
Text field - string simples
Number(f64)
Number field - número inteiro ou decimal (API aceita string ou number)
Currency(i64)
Currency field - valor monetário em centavos (API usa number)
Checkbox(String)
⚠️ CRÍTICO: Checkbox field - USA STRING “true”/“false”, NÃO BOOLEAN! Exemplo: {“value”: “true”} ou {“value”: “false”}
Dropdown(String)
Dropdown field - single select (option ID como string)
Labels(Vec<String>)
Labels field - multiple select (array de option IDs)
Date(i64)
Date field - timestamp em MILISSEGUNDOS (i64) Exemplo: 1672531200000 para 2023-01-01 00:00:00 UTC
Users(Vec<u32>)
Users field - array de user IDs (numbers)
Email(String)
Email field - endereço de email
Phone(String)
Phone field - número de telefone
Url(String)
URL field - URL válida
Location(LocationValue)
Location field - objeto com location data
Rating(i32)
Rating field - rating de 0 a 5 (integer)
Files(Vec<FileValue>)
Attachment/Files field - array de file objects
Automatic(Value)
Automatic field - calculado automaticamente (read-only)
Null
Para tipos desconhecidos ou null values
Trait Implementations§
Source§impl Clone for CustomFieldValue
impl Clone for CustomFieldValue
Source§fn clone(&self) -> CustomFieldValue
fn clone(&self) -> CustomFieldValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more