pub struct PerformanceThresholds {
pub max_response_time_secs: f64,
pub min_similarity_score: f32,
pub max_memory_usage_mb: u64,
pub max_cpu_usage_percent: f32,
}Expand description
Performance thresholds for monitoring
Fields§
§max_response_time_secs: f64Maximum response time in seconds
min_similarity_score: f32Minimum similarity score threshold
max_memory_usage_mb: u64Maximum memory usage in MB
max_cpu_usage_percent: f32Maximum CPU usage percentage
Trait Implementations§
Source§impl Clone for PerformanceThresholds
impl Clone for PerformanceThresholds
Source§fn clone(&self) -> PerformanceThresholds
fn clone(&self) -> PerformanceThresholds
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 PerformanceThresholds
impl Debug for PerformanceThresholds
Source§impl Default for PerformanceThresholds
impl Default for PerformanceThresholds
Source§impl<'de> Deserialize<'de> for PerformanceThresholds
impl<'de> Deserialize<'de> for PerformanceThresholds
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 PerformanceThresholds
impl RefUnwindSafe for PerformanceThresholds
impl Send for PerformanceThresholds
impl Sync for PerformanceThresholds
impl Unpin for PerformanceThresholds
impl UnwindSafe for PerformanceThresholds
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