pub struct CreateArticle<'a> { /* private fields */ }Expand description
Builder for POST /api/v1/ticket_articles.
Implementations§
Source§impl<'a> CreateArticle<'a>
impl<'a> CreateArticle<'a>
Sourcepub fn article(self, a: NewArticle) -> Self
pub fn article(self, a: NewArticle) -> Self
Replace the underlying article payload outright.
Sourcepub fn article_type(self, s: impl Into<String>) -> Self
pub fn article_type(self, s: impl Into<String>) -> Self
Set the article type (note, email, phone, …).
Sourcepub fn content_type(self, s: impl Into<String>) -> Self
pub fn content_type(self, s: impl Into<String>) -> Self
Set the MIME content type (text/plain or text/html).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CreateArticle<'a>
impl<'a> !UnwindSafe for CreateArticle<'a>
impl<'a> Freeze for CreateArticle<'a>
impl<'a> Send for CreateArticle<'a>
impl<'a> Sync for CreateArticle<'a>
impl<'a> Unpin for CreateArticle<'a>
impl<'a> UnsafeUnpin for CreateArticle<'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