pub struct TicketClient<'a> { /* private fields */ }Expand description
Client for single ticket operations (get, close, assign, notes, merge).
Implementations§
Source§impl<'a> TicketClient<'a>
impl<'a> TicketClient<'a>
Sourcepub async fn get(self) -> Result<DetailedTicket, Error>
pub async fn get(self) -> Result<DetailedTicket, Error>
Get full ticket details.
Sourcepub async fn assign(self, technician: &str) -> Result<(), Error>
pub async fn assign(self, technician: &str) -> Result<(), Error>
Assign the ticket to a technician.
Sourcepub async fn add_note(self, description: &str) -> Result<Note, Error>
pub async fn add_note(self, description: &str) -> Result<Note, Error>
Add a note to the ticket with default settings.
Sourcepub fn note(self) -> NoteBuilder<'a>
pub fn note(self) -> NoteBuilder<'a>
Start building a note with custom settings.
Auto Trait Implementations§
impl<'a> Freeze for TicketClient<'a>
impl<'a> !RefUnwindSafe for TicketClient<'a>
impl<'a> Send for TicketClient<'a>
impl<'a> Sync for TicketClient<'a>
impl<'a> Unpin for TicketClient<'a>
impl<'a> !UnwindSafe for TicketClient<'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