pub struct Configuration { /* private fields */ }Expand description
Remote configuration for the eppo client. It’s a central piece that defines client behavior.
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn from_server_response(
config: UniversalFlagConfig,
bandits: Option<BanditResponse>,
) -> Configuration
pub fn from_server_response( config: UniversalFlagConfig, bandits: Option<BanditResponse>, ) -> Configuration
Create a new configuration from server responses.
Sourcepub fn flag_keys(&self) -> impl Iterator<Item = &Str>
pub fn flag_keys(&self) -> impl Iterator<Item = &Str>
Returns an iterator over all flag keys. Note that this may return both disabled flags and flags with bad configuration. Mostly useful for debugging.
Sourcepub fn bandit_keys(&self) -> impl Iterator<Item = &Str>
pub fn bandit_keys(&self) -> impl Iterator<Item = &Str>
Returns an iterator over all bandit keys. Mostly useful to debugging.
Sourcepub fn get_flags_configuration(&self) -> Option<Cow<'_, [u8]>>
pub fn get_flags_configuration(&self) -> Option<Cow<'_, [u8]>>
Returns bytes representing flags configuration.
The return value should be treated as opaque and passed on to another Eppo client for initialization.
Sourcepub fn get_bandits_configuration(&self) -> Option<Cow<'_, [u8]>>
pub fn get_bandits_configuration(&self) -> Option<Cow<'_, [u8]>>
Returns bytes representing bandits configuration.
The return value should be treated as opaque and passed on to another Eppo client for initialization.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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