pub enum RuntimeResponseV2 {
Handshake {
request_id: String,
api_version: u32,
runtime_version: String,
model_pack_id: String,
model_pack_version: String,
capabilities: Vec<String>,
handler_id: String,
handler_version: String,
handler_api_version: u32,
effective_capabilities: Vec<String>,
},
Health {
request_id: String,
api_version: u32,
healthy: bool,
model_pack_id: String,
model_pack_version: String,
},
Result {
request_id: String,
api_version: u32,
output: Value,
},
Error {
request_id: String,
api_version: u32,
code: String,
message: String,
retryable: bool,
},
}Variants§
Trait Implementations§
Source§impl Clone for RuntimeResponseV2
impl Clone for RuntimeResponseV2
Source§fn clone(&self) -> RuntimeResponseV2
fn clone(&self) -> RuntimeResponseV2
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 RuntimeResponseV2
impl Debug for RuntimeResponseV2
Source§impl<'de> Deserialize<'de> for RuntimeResponseV2
impl<'de> Deserialize<'de> for RuntimeResponseV2
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
Source§impl PartialEq for RuntimeResponseV2
impl PartialEq for RuntimeResponseV2
Source§impl Serialize for RuntimeResponseV2
impl Serialize for RuntimeResponseV2
impl StructuralPartialEq for RuntimeResponseV2
Auto Trait Implementations§
impl Freeze for RuntimeResponseV2
impl RefUnwindSafe for RuntimeResponseV2
impl Send for RuntimeResponseV2
impl Sync for RuntimeResponseV2
impl Unpin for RuntimeResponseV2
impl UnsafeUnpin for RuntimeResponseV2
impl UnwindSafe for RuntimeResponseV2
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