pub enum CustomFieldValue {
Text(String),
Number(f64),
Bool(bool),
EnumOption(String),
MultiEnum(Vec<String>),
Date(String),
DateRange {
start_on: Option<String>,
due_on: Option<String>,
},
Json(Value),
}Expand description
Input values accepted when creating or updating custom fields.
Variants§
Text(String)
String-based value.
Number(f64)
Floating point number.
Bool(bool)
Boolean value.
EnumOption(String)
Enum option gid.
MultiEnum(Vec<String>)
Multiple enum option gids.
Date(String)
Date (YYYY-MM-DD).
DateRange
Date range definition.
Fields
Json(Value)
Raw JSON payload for advanced scenarios.
Implementations§
Source§impl CustomFieldValue
impl CustomFieldValue
Sourcepub fn into_value(self) -> Value
pub fn into_value(self) -> Value
Convert the custom field value into a JSON representation that matches the API contract.
Trait Implementations§
Source§impl Clone for CustomFieldValue
impl Clone for CustomFieldValue
Source§fn clone(&self) -> CustomFieldValue
fn clone(&self) -> CustomFieldValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CustomFieldValue
impl RefUnwindSafe for CustomFieldValue
impl Send for CustomFieldValue
impl Sync for CustomFieldValue
impl Unpin for CustomFieldValue
impl UnsafeUnpin for CustomFieldValue
impl UnwindSafe for CustomFieldValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more