pub fn value_of(&self, attr: &str) -> Option<AttributeValue> {
        match attr {
            "key" => Some(AttributeValue::String(self._key.clone())),
            "secondary" => self._secondary.as_deref().map(AttributeValue::from),
            "ip" => self._ip.as_deref().map(AttributeValue::from),
            "country" => self._country.as_deref().map(AttributeValue::from),
            "email" => self._email.as_deref().map(AttributeValue::from),
            "firstName" => self._first_name.as_deref().map(AttributeValue::from),
            "lastName" => self._last_name.as_deref().map(AttributeValue::from),
            "avatar" => self._avatar.as_deref().map(AttributeValue::from),
            "name" => self._name.as_deref().map(AttributeValue::from),
            "anonymous" => self._anonymous.map(AttributeValue::from),
            _ => self.custom.get(attr).cloned(),
        }
    }
/// Return the value of the attribute named `attr`.
Return the value of the attribute named `attr`.
Return the value of the attribute named ` attr ` .
pub fn value_of(&self, attr: &str) -> Option<AttributeValue> {
        match attr {
            "key" => Some(AttributeValue::String(self._key.clone())),
            "secondary" => self._secondary.as_deref().map(AttributeValue::from),
            "ip" => self._ip.as_deref().map(AttributeValue::from),
            "country" => self._country.as_deref().map(AttributeValue::from),
            "email" => self._email.as_deref().map(AttributeValue::from),
            "firstName" => self._first_name.as_deref().map(AttributeValue::from),
            "lastName" => self._last_name.as_deref().map(AttributeValue::from),
            "avatar" => self._avatar.as_deref().map(AttributeValue::from),
            "name" => self._name.as_deref().map(AttributeValue::from),
            "anonymous" => self._anonymous.map(AttributeValue::from),
            _ => self.custom.get(attr).cloned(),
        }
    }
pub fn value_of ( & self , attr : & str ) -> Option < AttributeValue > { match attr { " " => Some ( AttributeValue :: String ( self . _key . clone ( ) ) ) , " " => self . _secondary . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _ip . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _country . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _email . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _first_name . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _last_name . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _avatar . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _name . as_deref ( ) . map ( AttributeValue :: from ) , " " => self . _anonymous . map ( AttributeValue :: from ) , _ => self . custom . get ( attr ) . cloned ( ) , } }
Return the value of the attribute named `attr`.
Return the value of the attribute named ` attr ` .
&self
attr
&str
&self
attr
&str