pub struct FieldEdits {Show 14 fields
pub title: Option<String>,
pub status: Option<String>,
pub priority: Option<String>,
pub labels: Option<Vec<String>>,
pub files: Option<Vec<String>>,
pub assignee: Option<Option<String>>,
pub estimate: Option<Option<String>>,
pub commit: Option<Option<String>>,
pub cycles: Option<Option<Vec<String>>>,
pub milestones: Option<Option<Vec<String>>>,
pub reviewer: Option<Option<String>>,
pub start_date: Option<Option<String>>,
pub due_date: Option<Option<String>>,
pub parent: Option<Option<u32>>,
}Fields§
§title: Option<String>§status: Option<String>§priority: Option<String>§labels: Option<Vec<String>>§files: Option<Vec<String>>§assignee: Option<Option<String>>§estimate: Option<Option<String>>§commit: Option<Option<String>>§cycles: Option<Option<Vec<String>>>§milestones: Option<Option<Vec<String>>>§reviewer: Option<Option<String>>§start_date: Option<Option<String>>§due_date: Option<Option<String>>§parent: Option<Option<u32>>The decomposition parent, as a resolved issue number.
Some(None) clears it, mirroring assignee and every other optional field:
an absent flag leaves it untouched, --parent "" removes it.
A number, never a selector, because a title is not stable and a stored title
would silently break every child on a retitle. Resolution happens in
crate::commands::edit against the store, which merge_fields has no
access to.
Out of map for WP03 (src/editor.rs is in no WP’s owned_files; see tix
#1374). The field lives here, rather than as a separate parameter, because
that is exactly what assignee does: the value is merged so the merge stays
uniform, and the side effect merge_fields cannot perform — here validating
through the hierarchy service and appending the History event — happens
around it in the caller. The alternative, a second write path in edit that
bypasses the merge, is what assignee’s precedent argues against.
Auto Trait Implementations§
impl Freeze for FieldEdits
impl RefUnwindSafe for FieldEdits
impl Send for FieldEdits
impl Sync for FieldEdits
impl Unpin for FieldEdits
impl UnsafeUnpin for FieldEdits
impl UnwindSafe for FieldEdits
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more