Struct feature_probe_server_sdk::FeatureProbe
source · pub struct FeatureProbe { /* private fields */ }Implementations
sourceimpl FeatureProbe
impl FeatureProbe
pub fn new(config: FPConfig) -> Self
pub fn new_for_test(toggle: &str, value: Value) -> Self
pub fn new_for_tests(toggles: HashMap<String, Value>) -> Self
pub fn bool_value(&self, toggle: &str, user: &FPUser, default: bool) -> bool
pub fn string_value(&self, toggle: &str, user: &FPUser, default: String) -> String
pub fn number_value(&self, toggle: &str, user: &FPUser, default: f64) -> f64
pub fn json_value(&self, toggle: &str, user: &FPUser, default: Value) -> Value
pub fn bool_detail(
&self,
toggle: &str,
user: &FPUser,
default: bool
) -> FPDetail<bool>
pub fn string_detail(
&self,
toggle: &str,
user: &FPUser,
default: String
) -> FPDetail<String>
pub fn number_detail(
&self,
toggle: &str,
user: &FPUser,
default: f64
) -> FPDetail<f64>
pub fn json_detail(
&self,
toggle: &str,
user: &FPUser,
default: Value
) -> FPDetail<Value>
pub fn new_with(server_key: String, repo: Repository) -> Self
pub fn close(&self)
pub fn initialized(&self) -> bool
Trait Implementations
sourceimpl Clone for FeatureProbe
impl Clone for FeatureProbe
sourcefn clone(&self) -> FeatureProbe
fn clone(&self) -> FeatureProbe
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FeatureProbe
impl Debug for FeatureProbe
sourceimpl Default for FeatureProbe
impl Default for FeatureProbe
sourcefn default() -> FeatureProbe
fn default() -> FeatureProbe
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FeatureProbe
impl Send for FeatureProbe
impl Sync for FeatureProbe
impl Unpin for FeatureProbe
impl !UnwindSafe for FeatureProbe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more