pub struct IdentityContext {
pub identifier: String,
pub key: String,
pub traits: HashMap<String, FlagsmithValue>,
}Expand description
Represents identity context for feature flag evaluation.
Fields§
§identifier: StringThe identity identifier.
key: StringString key used for hashing in percentage splits. If not provided during deserialization, it will be constructed as “environment_key_identifier”.
traits: HashMap<String, FlagsmithValue>Identity traits as a map of trait keys to values.
Trait Implementations§
Source§impl Clone for IdentityContext
impl Clone for IdentityContext
Source§fn clone(&self) -> IdentityContext
fn clone(&self) -> IdentityContext
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 IdentityContext
impl Debug for IdentityContext
Source§impl<'de> Deserialize<'de> for IdentityContext
impl<'de> Deserialize<'de> for IdentityContext
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
Auto Trait Implementations§
impl Freeze for IdentityContext
impl RefUnwindSafe for IdentityContext
impl Send for IdentityContext
impl Sync for IdentityContext
impl Unpin for IdentityContext
impl UnwindSafe for IdentityContext
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