pub struct ResponsesCancel<'a> { /* private fields */ }Expand description
Builder for Client::responses_cancel
Implementations§
Source§impl<'a> ResponsesCancel<'a>
impl<'a> ResponsesCancel<'a>
pub fn new(client: &'a Client) -> Self
pub fn response_id<V>(self, value: V) -> Selfwhere
V: TryInto<ResponsesCancelResponseId>,
Sourcepub async fn send(self) -> Result<ResponseValue<ResponseObject>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<ResponseObject>, Error<()>>
Sends a POST request to /v1/responses/{responseId}/cancel
Trait Implementations§
Source§impl<'a> Clone for ResponsesCancel<'a>
impl<'a> Clone for ResponsesCancel<'a>
Source§fn clone(&self) -> ResponsesCancel<'a>
fn clone(&self) -> ResponsesCancel<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ResponsesCancel<'a>
impl<'a> !UnwindSafe for ResponsesCancel<'a>
impl<'a> Freeze for ResponsesCancel<'a>
impl<'a> Send for ResponsesCancel<'a>
impl<'a> Sync for ResponsesCancel<'a>
impl<'a> Unpin for ResponsesCancel<'a>
impl<'a> UnsafeUnpin for ResponsesCancel<'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