pub struct SubmitResponse<'a> { /* private fields */ }Expand description
Builder for Client::submit_response
Implementations§
Source§impl<'a> SubmitResponse<'a>
impl<'a> SubmitResponse<'a>
pub fn new(client: &'a Client) -> Self
pub fn command_id<V>(self, value: V) -> Self
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<SubmitResponseRequest>,
Sourcepub async fn send(self) -> Result<ResponseValue<()>, Error<ErrorResponse>>
pub async fn send(self) -> Result<ResponseValue<()>, Error<ErrorResponse>>
Sends a PUT request to /v1/commands/{command_id}/response
Trait Implementations§
Source§impl<'a> Clone for SubmitResponse<'a>
impl<'a> Clone for SubmitResponse<'a>
Source§fn clone(&self) -> SubmitResponse<'a>
fn clone(&self) -> SubmitResponse<'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 SubmitResponse<'a>
impl<'a> !UnwindSafe for SubmitResponse<'a>
impl<'a> Freeze for SubmitResponse<'a>
impl<'a> Send for SubmitResponse<'a>
impl<'a> Sync for SubmitResponse<'a>
impl<'a> Unpin for SubmitResponse<'a>
impl<'a> UnsafeUnpin for SubmitResponse<'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