pub fn new(key: impl Into<String>) -> Self {
        Self {
            key: key.into(),
            secondary: None,
            ip: None,
            country: None,
            email: None,
            first_name: None,
            last_name: None,
            avatar: None,
            name: None,
            anonymous: None,
            custom: HashMap::with_capacity(USER_CUSTOM_STARTING_CAPACITY),
            // The same capacity as the custom container + the 9 built-in fields we might hide
            private_attributes: HashSet::with_capacity(USER_CUSTOM_STARTING_CAPACITY + 9),
        }
    }
/// Create a new user builder, setting the user key value to `key`.
Create a new user builder, setting the user key value to `key`.
Create a new user builder setting the user key value to ` key ` .
pub fn new(key: impl Into<String>) -> Self {
        Self {
            key: key.into(),
            secondary: None,
            ip: None,
            country: None,
            email: None,
            first_name: None,
            last_name: None,
            avatar: None,
            name: None,
            anonymous: None,
            custom: HashMap::with_capacity(USER_CUSTOM_STARTING_CAPACITY),
            // The same capacity as the custom container + the 9 built-in fields we might hide
            private_attributes: HashSet::with_capacity(USER_CUSTOM_STARTING_CAPACITY + 9),
        }
    }
pub fn new ( key : impl Into < String > ) -> Self { Self { key : key . into ( ) , secondary : None , ip : None , country : None , email : None , first_name : None , last_name : None , avatar : None , name : None , anonymous : None , custom : HashMap :: with_capacity ( USER_CUSTOM_STARTING_CAPACITY ) , // The same capacity as the custom container + the 9 built-in fields we might hide private_attributes : HashSet :: with_capacity ( USER_CUSTOM_STARTING_CAPACITY + 9 ) , } }
Create a new user builder, setting the user key value to `key`.
Create a new user builder setting the user key value to ` key ` .
key
impl Into<String>
key
impl Into<String>