pub struct PredictionServiceConfig {
pub enabled: bool,
pub host: String,
pub port: u16,
pub timeout_ms: u64,
pub fallback_to_static: bool,
}Expand description
ML prediction service configuration
Fields§
§enabled: bool§host: String§port: u16§timeout_ms: u64§fallback_to_static: boolImplementations§
Trait Implementations§
Source§impl Clone for PredictionServiceConfig
impl Clone for PredictionServiceConfig
Source§fn clone(&self) -> PredictionServiceConfig
fn clone(&self) -> PredictionServiceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PredictionServiceConfig
impl Debug for PredictionServiceConfig
Source§impl Default for PredictionServiceConfig
impl Default for PredictionServiceConfig
Source§impl<'de> Deserialize<'de> for PredictionServiceConfig
impl<'de> Deserialize<'de> for PredictionServiceConfig
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 PredictionServiceConfig
impl RefUnwindSafe for PredictionServiceConfig
impl Send for PredictionServiceConfig
impl Sync for PredictionServiceConfig
impl Unpin for PredictionServiceConfig
impl UnwindSafe for PredictionServiceConfig
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