pub enum MlBackend {
HttpService {
url: String,
},
Onnx {
model_path: String,
},
Candle {
model_path: String,
},
}Expand description
Backend selection for the ML agent.
Variants§
HttpService
Remote HTTP microservice (POST JSON, receive JSON).
Onnx
ONNX runtime (local file path to .onnx model).
Candle
candle (Rust-native PyTorch-like) — for future use.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MlBackend
impl<'de> Deserialize<'de> for MlBackend
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
Auto Trait Implementations§
impl Freeze for MlBackend
impl RefUnwindSafe for MlBackend
impl Send for MlBackend
impl Sync for MlBackend
impl Unpin for MlBackend
impl UnwindSafe for MlBackend
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