pub struct ArticlesApi<'a> { /* private fields */ }Expand description
Ticket-article endpoints (replies, notes, emails, …).
Implementations§
Source§impl<'a> ArticlesApi<'a>
impl<'a> ArticlesApi<'a>
Sourcepub async fn by_ticket(&self, ticket_id: u64) -> Result<Vec<Article>>
pub async fn by_ticket(&self, ticket_id: u64) -> Result<Vec<Article>>
GET /api/v1/ticket_articles/by_ticket/:ticket_id - every article on
the ticket.
Sourcepub fn create(&self, ticket_id: u64) -> CreateArticle<'a>
pub fn create(&self, ticket_id: u64) -> CreateArticle<'a>
POST /api/v1/ticket_articles - add an article (reply, note, …) to
a ticket via the returned builder.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ArticlesApi<'a>
impl<'a> !UnwindSafe for ArticlesApi<'a>
impl<'a> Freeze for ArticlesApi<'a>
impl<'a> Send for ArticlesApi<'a>
impl<'a> Sync for ArticlesApi<'a>
impl<'a> Unpin for ArticlesApi<'a>
impl<'a> UnsafeUnpin for ArticlesApi<'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