pub enum FieldValue {
Text(String),
Number(f64),
Date(String),
SelectName(String),
SelectId(String),
MultiSelect(Vec<String>),
UserEmail(String),
Labels(Vec<String>),
Raw(Value),
}Expand description
Typed value ready to be serialized into a Jira API request body.
Variants§
Text(String)
Number(f64)
Date(String)
ISO 8601 date string (“YYYY-MM-DD” or full datetime)
SelectName(String)
Select field — match by value string
SelectId(String)
Select field — match by option ID
MultiSelect(Vec<String>)
Multi-select — list of value strings
UserEmail(String)
User field — identified by email address
Labels(Vec<String>)
Labels — plain string list
Raw(Value)
Escape hatch for anything else
Implementations§
Source§impl FieldValue
impl FieldValue
Sourcepub fn to_api_json(&self) -> Value
pub fn to_api_json(&self) -> Value
Serialize to the JSON shape Jira expects for each field type.
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
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 FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnsafeUnpin for FieldValue
impl UnwindSafe for FieldValue
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