#[non_exhaustive]pub enum ClearableIssueField {
Category,
Version,
AssignedTo,
ParentIssue,
EstimatedHours,
StartDate,
DueDate,
}Expand description
An issue field which UpdateIssue can clear (set to no value)
Fields not listed here can be emptied by setting them to an empty value instead, e.g. an empty description or a done ratio of 0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Category
the issue category
Version
the target version
AssignedTo
the assignee
ParentIssue
the parent issue
EstimatedHours
the estimated hours
StartDate
the start date
DueDate
the due date
Implementations§
Source§impl ClearableIssueField
impl ClearableIssueField
Sourcepub const fn json_name(self) -> &'static str
pub const fn json_name(self) -> &'static str
the name of the field in the JSON body of UpdateIssue
Sourcepub const fn clear_value(self) -> Value
pub const fn clear_value(self) -> Value
the JSON value sent in the body of UpdateIssue to clear the field
This is null for most fields, but Redmine’s Issue#safe_attributes=
silently ignores a falsy assigned_to_id, so the assignee is cleared
with an empty string instead, like the web UI does.
Trait Implementations§
Source§impl Clone for ClearableIssueField
impl Clone for ClearableIssueField
impl Copy for ClearableIssueField
Source§impl Debug for ClearableIssueField
impl Debug for ClearableIssueField
impl Eq for ClearableIssueField
Source§impl Hash for ClearableIssueField
impl Hash for ClearableIssueField
Source§impl PartialEq for ClearableIssueField
impl PartialEq for ClearableIssueField
impl StructuralPartialEq for ClearableIssueField
Auto Trait Implementations§
impl Freeze for ClearableIssueField
impl RefUnwindSafe for ClearableIssueField
impl Send for ClearableIssueField
impl Sync for ClearableIssueField
impl Unpin for ClearableIssueField
impl UnsafeUnpin for ClearableIssueField
impl UnwindSafe for ClearableIssueField
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