pub struct CanaryConfig { /* private fields */ }Expand description
Configuration for CanaryPlugin.
Implementations§
Source§impl CanaryConfig
Fluent builders for CanaryConfig.
impl CanaryConfig
Fluent builders for CanaryConfig.
Sourcepub fn with_experiment(self, rule: ExperimentRule) -> Self
pub fn with_experiment(self, rule: ExperimentRule) -> Self
Registers an ExperimentRule in this configuration.
§Arguments
ExperimentRule- Experiment or feature-flag rollout rule.
§Returns
Self- Updated configuration.
Sourcepub fn with_sticky_header<S>(self, header: S) -> Self
pub fn with_sticky_header<S>(self, header: S) -> Self
Source§impl CanaryConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl CanaryConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_experiments(&self) -> &Vec<ExperimentRule>
pub fn get_mut_experiments(&mut self) -> &mut Vec<ExperimentRule>
pub fn set_experiments(&mut self, val: Vec<ExperimentRule>) -> &mut Self
pub fn get_sticky_header(&self) -> &String
pub fn get_mut_sticky_header(&mut self) -> &mut String
pub fn set_sticky_header(&mut self, val: String) -> &mut Self
pub fn get_override_header(&self) -> String
pub fn try_get_override_header(&self) -> &Option<String>
pub fn get_mut_override_header(&mut self) -> &mut Option<String>
pub fn set_override_header(&mut self, val: Option<String>) -> &mut Self
pub fn get_variant_response_header(&self) -> &String
pub fn get_mut_variant_response_header(&mut self) -> &mut String
pub fn set_variant_response_header(&mut self, val: String) -> &mut Self
pub fn get_emit_vary(&self) -> bool
pub fn get_mut_emit_vary(&mut self) -> &mut bool
pub fn set_emit_vary(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for CanaryConfig
impl Clone for CanaryConfig
Source§impl Debug for CanaryConfig
impl Debug for CanaryConfig
Source§impl Default for CanaryConfig
Default construction for CanaryConfig.
impl Default for CanaryConfig
Default construction for CanaryConfig.
Source§fn default() -> Self
fn default() -> Self
Builds a default CanaryConfig bucketing on x-user-id and emitting x-variant.
§Returns
Self- Default configuration.
impl Eq for CanaryConfig
Source§impl PartialEq for CanaryConfig
impl PartialEq for CanaryConfig
impl StructuralPartialEq for CanaryConfig
Auto Trait Implementations§
impl Forget for CanaryConfig
impl Freeze for CanaryConfig
impl Move for CanaryConfig
impl RefUnwindSafe for CanaryConfig
impl Send for CanaryConfigwhere
RawVecInner: Send,
impl Sync for CanaryConfigwhere
RawVecInner: Sync,
impl Unpin for CanaryConfig
impl UnsafeUnpin for CanaryConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ExperimentRule>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for CanaryConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.