pub struct TicketComment {
pub idempotency_key: String,
pub body_markdown: String,
pub link: Option<String>,
}Expand description
A note added to an existing ticket — e.g. linking a duplicate report to
the ticket it duplicates. Adapters map the fields their tracker has and
document what they drop; body_markdown is the only content every
tracker takes.
Fields§
§idempotency_key: StringMakes the note idempotent under retries; the caller owns its shape,
exactly as TicketDraft::idempotency_key does for the file.
body_markdown: StringThe note’s body, Markdown. Adapters translate or quote it verbatim per their tracker’s format and say which.
link: Option<String>A URL the note points at — typically the duplicate report this comment links into the existing ticket.
Implementations§
Source§impl TicketComment
impl TicketComment
Trait Implementations§
Source§impl Clone for TicketComment
impl Clone for TicketComment
Source§impl Debug for TicketComment
impl Debug for TicketComment
impl Eq for TicketComment
Source§impl PartialEq for TicketComment
impl PartialEq for TicketComment
impl StructuralPartialEq for TicketComment
Auto Trait Implementations§
impl Freeze for TicketComment
impl RefUnwindSafe for TicketComment
impl Send for TicketComment
impl Sync for TicketComment
impl Unpin for TicketComment
impl UnsafeUnpin for TicketComment
impl UnwindSafe for TicketComment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.