What is the structure-activity relationship of cocaine?

[Cocaine](https://en.wikipedia.org/wiki/Cocaine) is a widely known drug for both recreational and pharmacological uses. What exactly is the relationship of its structure to its drug activity?


