pub struct EditMetaField {
pub name: String,
pub schema: EditMetaSchema,
pub allowed_values: Vec<String>,
}Expand description
A single field descriptor from the editmeta response.
Fields§
§name: StringHuman-readable field name.
schema: EditMetaSchemaSchema describing the field’s wire type.
allowed_values: Vec<String>Permitted option values for option-like fields (select,
radiobuttons, multi-select), taken from the meta allowedValues.
Empty when the field does not enumerate values (free text, numbers,
user pickers, cascading selects) — in which case --set-field values
pass through for the API to validate. Used to reject an out-of-range
option before the request; see
crate::atlassian::custom_fields.
Implementations§
Source§impl EditMetaField
impl EditMetaField
Sourcepub fn is_adf_rich_text(&self) -> bool
pub fn is_adf_rich_text(&self) -> bool
Returns true when the field carries rich-text (ADF) content on the
wire: textarea custom fields, plus the system description and
environment fields.
Trait Implementations§
Source§impl Clone for EditMetaField
impl Clone for EditMetaField
Source§fn clone(&self) -> EditMetaField
fn clone(&self) -> EditMetaField
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 EditMetaField
impl RefUnwindSafe for EditMetaField
impl Send for EditMetaField
impl Sync for EditMetaField
impl Unpin for EditMetaField
impl UnsafeUnpin for EditMetaField
impl UnwindSafe for EditMetaField
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