pub struct FieldEdits {Show 16 fields
pub title: Option<String>,
pub status: Option<String>,
pub priority: Option<String>,
pub labels: Option<Vec<String>>,
pub files: Option<Vec<String>>,
pub related_issues: Option<Vec<String>>,
pub type_: Option<Option<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<IssueRef>>,
}Fields§
§title: Option<String>§status: Option<String>§priority: Option<String>§labels: Option<Vec<String>>§files: Option<Vec<String>>General cross-repository references, replacing the whole list when
present (Some(vec![]) clears). Free-form strings, stored verbatim.
type_: Option<Option<String>>Issue type. Some(None) clears it, Some(Some(v)) sets it; absent leaves
it untouched.
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<IssueRef>>The decomposition parent, as a resolved canonical issue reference.
Some(None) clears it, mirroring assignee and every other optional field:
an absent flag leaves it untouched, --parent "" removes it.
A canonical id, 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