pub struct SlaConfig {
pub enabled: bool,
pub default_sla: SlaRequirements,
pub client_slas: HashMap<String, SlaRequirements>,
}Expand description
SLA configuration
Fields§
§enabled: boolEnable SLA enforcement
default_sla: SlaRequirementsDefault SLA for requests without specific SLA
client_slas: HashMap<String, SlaRequirements>Per-client SLA overrides
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlaConfig
impl<'de> Deserialize<'de> for SlaConfig
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 SlaConfig
impl RefUnwindSafe for SlaConfig
impl Send for SlaConfig
impl Sync for SlaConfig
impl Unpin for SlaConfig
impl UnsafeUnpin for SlaConfig
impl UnwindSafe for SlaConfig
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