launchdarkly_server_sdk_evaluation/
lib.rs#![deny(rustdoc::missing_crate_level_docs)]
#![deny(missing_docs)]
mod attribute_value;
mod contexts;
mod eval;
mod flag;
mod flag_value;
mod rule;
mod segment;
mod store;
mod test_common;
mod util;
mod variation;
pub use attribute_value::AttributeValue;
pub use contexts::attribute_reference::Reference;
pub use contexts::context::{Context, ContextAttributes, Kind};
pub use contexts::context_builder::{ContextBuilder, MultiContextBuilder};
pub use eval::*;
pub use flag::*;
pub use flag_value::*;
pub use rule::*;
pub use segment::*;
pub use store::*;
pub use variation::*;
#[cfg(test)]
pub(crate) mod proptest_generators {
pub(crate) use crate::contexts::attribute_reference::proptest_generators::*;
pub(crate) use crate::contexts::context::proptest_generators::*;
pub(crate) use crate::rule::proptest_generators::*;
pub(crate) use crate::variation::proptest_generators::*;
}
pub trait Versioned {
fn version(&self) -> u64;
fn is_greater_than_or_equal(&self, version: u64) -> bool {
self.version() >= version
}
}