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>>,
pub statsig_environment: 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>>§statsig_environment: 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 statsig_environment( self, statsig_environment: Option<HashMap<String, 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 UnsafeUnpin for StatsigUserBuilder
impl UnwindSafe for StatsigUserBuilder
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoOptional<T> for T
impl<T> IntoOptional<T> for T
fn into_optional(self) -> Option<T>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.