pub struct CanaryStrategy {
pub canary_count: u32,
pub canary_duration_secs: u64,
pub success_threshold: f64,
}Expand description
Configuration for a canary deployment.
Fields§
§canary_count: u32Number of canary instances to deploy.
canary_duration_secs: u64Observation window in seconds before deciding to proceed.
success_threshold: f64Minimum health success rate to proceed (0.0–1.0).
Trait Implementations§
Source§impl Clone for CanaryStrategy
impl Clone for CanaryStrategy
Source§fn clone(&self) -> CanaryStrategy
fn clone(&self) -> CanaryStrategy
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 CanaryStrategy
impl Debug for CanaryStrategy
Source§impl Default for CanaryStrategy
impl Default for CanaryStrategy
Source§impl<'de> Deserialize<'de> for CanaryStrategy
impl<'de> Deserialize<'de> for CanaryStrategy
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
Source§impl PartialEq for CanaryStrategy
impl PartialEq for CanaryStrategy
Source§impl Serialize for CanaryStrategy
impl Serialize for CanaryStrategy
impl StructuralPartialEq for CanaryStrategy
Auto Trait Implementations§
impl Freeze for CanaryStrategy
impl RefUnwindSafe for CanaryStrategy
impl Send for CanaryStrategy
impl Sync for CanaryStrategy
impl Unpin for CanaryStrategy
impl UnsafeUnpin for CanaryStrategy
impl UnwindSafe for CanaryStrategy
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