pub struct CancelGenerationResponse {
pub request_id: String,
pub cancelled: bool,
pub detail: String,
}Expand description
The answer to POST /v1/cancel.
Sent with 200 when a live generation was signalled and with 404
when the id names nothing that is running – already finished, never
issued, or served by a path that does not register for cancellation.
The body says the same thing in both cases so a client that only
reads JSON is not left guessing at the status line.
Fields§
§request_id: String§cancelled: boolWhether a generation was actually signalled to stop.
detail: StringA human sentence for the state above, on the same principle as
the capability reasons in crate::health: the UI shows the
server’s explanation rather than re-deriving one.
Trait Implementations§
Source§impl Clone for CancelGenerationResponse
impl Clone for CancelGenerationResponse
Source§fn clone(&self) -> CancelGenerationResponse
fn clone(&self) -> CancelGenerationResponse
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 moreSource§impl Debug for CancelGenerationResponse
impl Debug for CancelGenerationResponse
Source§impl<'de> Deserialize<'de> for CancelGenerationResponse
impl<'de> Deserialize<'de> for CancelGenerationResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CancelGenerationResponse
Source§impl PartialEq for CancelGenerationResponse
impl PartialEq for CancelGenerationResponse
Source§impl Serialize for CancelGenerationResponse
impl Serialize for CancelGenerationResponse
impl StructuralPartialEq for CancelGenerationResponse
Auto Trait Implementations§
impl Freeze for CancelGenerationResponse
impl RefUnwindSafe for CancelGenerationResponse
impl Send for CancelGenerationResponse
impl Sync for CancelGenerationResponse
impl Unpin for CancelGenerationResponse
impl UnsafeUnpin for CancelGenerationResponse
impl UnwindSafe for CancelGenerationResponse
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