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§fn clone(&self) -> MlPredictOptions
fn clone(&self) -> MlPredictOptions
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 MlPredictOptions
impl Debug for MlPredictOptions
Source§impl Default for MlPredictOptions
impl Default for MlPredictOptions
Source§fn default() -> MlPredictOptions
fn default() -> MlPredictOptions
Returns the “default value” for a type. Read more
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