pub struct TicketPatch {
pub title: Option<String>,
pub body: Option<String>,
pub priority: Option<Option<String>>,
pub labels: Option<Vec<String>>,
pub assignees: Option<Vec<String>>,
}Expand description
A partial update to a ticket. None fields are left unchanged. For priority,
an inner Some(None) clears the value.
Fields§
§title: Option<String>New title.
body: Option<String>New body.
priority: Option<Option<String>>Set/clear the priority.
labels: Option<Vec<String>>Replace the label set.
assignees: Option<Vec<String>>Replace the assignee set.
Trait Implementations§
Source§impl Clone for TicketPatch
impl Clone for TicketPatch
Source§fn clone(&self) -> TicketPatch
fn clone(&self) -> TicketPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TicketPatch
impl Debug for TicketPatch
Source§impl Default for TicketPatch
impl Default for TicketPatch
Source§fn default() -> TicketPatch
fn default() -> TicketPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TicketPatch
impl RefUnwindSafe for TicketPatch
impl Send for TicketPatch
impl Sync for TicketPatch
impl Unpin for TicketPatch
impl UnsafeUnpin for TicketPatch
impl UnwindSafe for TicketPatch
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