pub struct StatsigUserBuilder {
pub user_id: Option<UnitID>,
pub custom_ids: Option<HashMap<String, UnitID>>,
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>>,
}
Fields§
§user_id: Option<UnitID>
§custom_ids: Option<HashMap<String, UnitID>>
§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>>
Implementations§
Source§impl StatsigUserBuilder
impl StatsigUserBuilder
pub fn new_with_user_id(user_id: impl Into<UnitID>) -> Self
pub fn new_with_custom_ids<K, U>(custom_ids: HashMap<K, U>) -> Self
pub fn user_id(self, user_id: Option<impl Into<UnitID>>) -> Self
pub fn custom_ids( self, custom_ids: Option<HashMap<impl Into<String>, impl Into<UnitID>>>, ) -> Self
pub fn email(self, email: Option<String>) -> Self
pub fn ip(self, ip: Option<String>) -> Self
pub fn user_agent(self, user_agent: Option<String>) -> Self
pub fn country(self, country: Option<String>) -> Self
pub fn locale(self, locale: Option<String>) -> Self
pub fn app_version(self, app_version: Option<String>) -> Self
pub fn custom_from_str_map( self, custom: Option<HashMap<String, String>>, ) -> Self
pub fn custom(self, custom: Option<HashMap<String, DynamicValue>>) -> Self
pub fn private_attributes_from_str_map( self, private_attributes: Option<HashMap<String, String>>, ) -> Self
pub fn private_attributes( self, private_attributes: Option<HashMap<String, DynamicValue>>, ) -> Self
pub fn build(self) -> StatsigUser
Auto Trait Implementations§
impl Freeze for StatsigUserBuilder
impl RefUnwindSafe for StatsigUserBuilder
impl Send for StatsigUserBuilder
impl Sync for StatsigUserBuilder
impl Unpin for StatsigUserBuilder
impl UnwindSafe for StatsigUserBuilder
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