pub struct ClickUpCustomField {
pub id: String,
pub name: String,
pub field_type: ClickUpFieldType,
pub required: bool,
pub options: Vec<ClickUpFieldOption>,
}Expand description
ClickUp custom field definition.
Fields§
§id: String§name: StringHuman-readable name.
field_type: ClickUpFieldType§required: boolWhether this field is required.
options: Vec<ClickUpFieldOption>Options for dropdown/labels fields.
Implementations§
Source§impl ClickUpCustomField
impl ClickUpCustomField
Sourcepub fn transform_value(&self, value: &Value) -> Value
pub fn transform_value(&self, value: &Value) -> Value
Convert a human-readable value to ClickUp API format.
- Dropdown: name → orderindex (position in options array)
- Labels: name array → id array
- Other types: pass-through
Trait Implementations§
Source§impl Clone for ClickUpCustomField
impl Clone for ClickUpCustomField
Source§fn clone(&self) -> ClickUpCustomField
fn clone(&self) -> ClickUpCustomField
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 moreSource§impl Debug for ClickUpCustomField
impl Debug for ClickUpCustomField
Source§impl<'de> Deserialize<'de> for ClickUpCustomField
impl<'de> Deserialize<'de> for ClickUpCustomField
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClickUpCustomField
impl RefUnwindSafe for ClickUpCustomField
impl Send for ClickUpCustomField
impl Sync for ClickUpCustomField
impl Unpin for ClickUpCustomField
impl UnsafeUnpin for ClickUpCustomField
impl UnwindSafe for ClickUpCustomField
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