pub struct EditIssue<'a> {
pub title: Option<&'a str>,
pub body: Option<&'a str>,
pub assignee: Option<&'a str>,
pub labels: Option<&'a str>,
pub milestone_number: Option<i64>,
pub security_hole: Option<bool>,
pub state: Option<IssueState>,
}Expand description
Fields for issue edit. All optional; only Some fields are sent. labels
arrives comma-joined from the handler. Param names per the v5 swagger
(milestone takes the milestone number as integer).
Fields§
§title: Option<&'a str>§body: Option<&'a str>§assignee: Option<&'a str>§labels: Option<&'a str>§milestone_number: Option<i64>§security_hole: Option<bool>§state: Option<IssueState>Lifecycle state write: open / progressing / closed only.
Gitee v5 rejects rejected with HTTP 400
(state does not have a valid value). closed always maps to the
Chinese board state 已完成 — there is no close-reason field for 拒绝.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EditIssue<'a>
impl<'a> RefUnwindSafe for EditIssue<'a>
impl<'a> Send for EditIssue<'a>
impl<'a> Sync for EditIssue<'a>
impl<'a> Unpin for EditIssue<'a>
impl<'a> UnsafeUnpin for EditIssue<'a>
impl<'a> UnwindSafe for EditIssue<'a>
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