pub struct TicketCreateBuilder<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> TicketCreateBuilder<'a>
impl<'a> TicketCreateBuilder<'a>
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the ticket description.
Sourcepub fn requester(self, requester: impl Into<String>) -> Self
pub fn requester(self, requester: impl Into<String>) -> Self
Set the requester name (required).
Sourcepub fn udf_fields(self, fields: Value) -> Self
pub fn udf_fields(self, fields: Value) -> Self
Set custom UDF fields.
Sourcepub async fn send(self) -> Result<TicketResponse, Error>
pub async fn send(self) -> Result<TicketResponse, Error>
Create the ticket.
Auto Trait Implementations§
impl<'a> Freeze for TicketCreateBuilder<'a>
impl<'a> !RefUnwindSafe for TicketCreateBuilder<'a>
impl<'a> Send for TicketCreateBuilder<'a>
impl<'a> Sync for TicketCreateBuilder<'a>
impl<'a> Unpin for TicketCreateBuilder<'a>
impl<'a> !UnwindSafe for TicketCreateBuilder<'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