pub struct StatsigUser {
pub data: Arc<UserData>,
}
Fields§
§data: Arc<UserData>
Implementations§
Source§impl StatsigUser
impl StatsigUser
Source§impl StatsigUser
impl StatsigUser
pub fn get_user_id(&self) -> Option<&str>
pub fn set_user_id(&mut self, user_id: impl Into<UnitID>)
pub fn get_custom_ids(&self) -> Option<HashMap<&str, &str>>
pub fn set_custom_ids<K, U>(&mut self, custom_ids: HashMap<K, U>)
pub fn get_unit_id(&self, id_type: &DynamicString) -> Option<&DynamicValue>
pub fn get_email(&self) -> Option<&str>
pub fn set_email(&mut self, value: impl IntoOptional<String>)
pub fn get_ip(&self) -> Option<&str>
pub fn set_ip(&mut self, value: impl IntoOptional<String>)
pub fn get_user_agent(&self) -> Option<&str>
pub fn set_user_agent(&mut self, value: impl IntoOptional<String>)
pub fn get_country(&self) -> Option<&str>
pub fn set_country(&mut self, value: impl IntoOptional<String>)
pub fn get_locale(&self) -> Option<&str>
pub fn set_locale(&mut self, value: impl IntoOptional<String>)
pub fn get_app_version(&self) -> Option<&str>
pub fn set_app_version(&mut self, value: impl IntoOptional<String>)
pub fn get_custom(&self) -> Option<&HashMap<String, DynamicValue>>
pub fn set_custom<K, V>(&mut self, value: impl IntoOptional<HashMap<K, V>>)
pub fn get_private_attributes(&self) -> Option<&HashMap<String, DynamicValue>>
pub fn set_private_attributes<K, V>( &mut self, value: impl IntoOptional<HashMap<K, V>>, )
Trait Implementations§
Source§impl Clone for StatsigUser
impl Clone for StatsigUser
Source§fn clone(&self) -> StatsigUser
fn clone(&self) -> StatsigUser
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 moreAuto Trait Implementations§
impl Freeze for StatsigUser
impl RefUnwindSafe for StatsigUser
impl Send for StatsigUser
impl Sync for StatsigUser
impl Unpin for StatsigUser
impl UnwindSafe for StatsigUser
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