pub struct StatsigUser {
pub user_id: Option<DynamicValue>,
pub email: Option<DynamicValue>,
pub ip: Option<DynamicValue>,
pub user_agent: Option<DynamicValue>,
pub country: Option<DynamicValue>,
pub locale: Option<DynamicValue>,
pub app_version: Option<DynamicValue>,
pub custom: Option<HashMap<String, DynamicValue>>,
pub private_attributes: Option<HashMap<String, DynamicValue>>,
pub custom_ids: Option<HashMap<String, DynamicValue>>,
}
Fields§
§user_id: Option<DynamicValue>
§email: Option<DynamicValue>
§ip: Option<DynamicValue>
§user_agent: Option<DynamicValue>
§country: Option<DynamicValue>
§locale: Option<DynamicValue>
§app_version: Option<DynamicValue>
§custom: Option<HashMap<String, DynamicValue>>
§private_attributes: Option<HashMap<String, DynamicValue>>
§custom_ids: Option<HashMap<String, DynamicValue>>
Implementations§
Source§impl StatsigUser
impl StatsigUser
pub fn with_user_id(user_id: String) -> Self
pub fn with_custom_ids<V>(custom_ids: HashMap<String, V>) -> Selfwhere
V: Into<DynamicValue>,
Trait Implementations§
Source§impl Clone for StatsigUser
impl Clone for StatsigUser
Source§fn clone(&self) -> StatsigUser
fn clone(&self) -> StatsigUser
Returns a copy 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<'de> Deserialize<'de> for StatsigUser
impl<'de> Deserialize<'de> for StatsigUser
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 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