pub struct MlPredictOptions {
pub model: String,
pub input_fields: Vec<String>,
pub output_field: String,
pub parallelism: Option<u32>,
pub ordering: Option<String>,
pub on_failure: Option<String>,
}Expand description
B-112 — options for StreamBuilder::ml_predict. model, input_fields
and output_field are required.
Fields§
§model: StringRegistered model name (upload first via client.models().upload(...)).
input_fields: Vec<String>Feature names pulled from the event, in the model’s input order.
Dotted paths (customer.tier) resolve through nested objects.
output_field: StringEvent field the prediction object is written to.
parallelism: Option<u32>§ordering: Option<String>Must be "PRESERVE_INPUT" or "UNORDERED".
on_failure: Option<String>Must be "EMIT_ERROR", "DROP", or "PASS_THROUGH".
Trait Implementations§
Source§impl Clone for MlPredictOptions
impl Clone for MlPredictOptions
Source§impl Debug for MlPredictOptions
impl Debug for MlPredictOptions
Auto Trait Implementations§
impl Freeze for MlPredictOptions
impl RefUnwindSafe for MlPredictOptions
impl Send for MlPredictOptions
impl Sync for MlPredictOptions
impl Unpin for MlPredictOptions
impl UnsafeUnpin for MlPredictOptions
impl UnwindSafe for MlPredictOptions
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