pub struct IssueUpdate {
pub state: Option<String>,
pub labels: Vec<String>,
pub remove_labels: Vec<String>,
pub assignee: Option<String>,
pub comment: Option<String>,
}Expand description
Patch fields for updating an existing issue. Mirrors TS IssueUpdate.
Only Some fields are applied; None means “leave unchanged”.
Fields§
§state: Option<String>New state: "open" or "closed".
labels: Vec<String>Labels to add.
remove_labels: Vec<String>Labels to remove.
assignee: Option<String>§comment: Option<String>Post a comment while updating.
Trait Implementations§
Source§impl Clone for IssueUpdate
impl Clone for IssueUpdate
Source§fn clone(&self) -> IssueUpdate
fn clone(&self) -> IssueUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IssueUpdate
impl Debug for IssueUpdate
Source§impl Default for IssueUpdate
impl Default for IssueUpdate
Source§fn default() -> IssueUpdate
fn default() -> IssueUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IssueUpdate
impl<'de> Deserialize<'de> for IssueUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IssueUpdate
impl RefUnwindSafe for IssueUpdate
impl Send for IssueUpdate
impl Sync for IssueUpdate
impl Unpin for IssueUpdate
impl UnsafeUnpin for IssueUpdate
impl UnwindSafe for IssueUpdate
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