Struct Completion
pub struct Completion {
pub token: String,
pub url: Option<String>,
}Expand description
What Ctx::await_completion’s send gets: the token that completes
this attempt, and the URL that does it over HTTP when the engine serves
its API (POST the value as JSON to url; …/v1/fail/<token> fails it).
Fields§
§token: String§url: Option<String>Trait Implementations§
§impl Clone for Completion
impl Clone for Completion
§fn clone(&self) -> Completion
fn clone(&self) -> Completion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for Completion
impl Debug for Completion
§impl PartialEq for Completion
impl PartialEq for Completion
impl Eq for Completion
impl StructuralPartialEq for Completion
Auto Trait Implementations§
impl Freeze for Completion
impl RefUnwindSafe for Completion
impl Send for Completion
impl Sync for Completion
impl Unpin for Completion
impl UnsafeUnpin for Completion
impl UnwindSafe for Completion
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