What do psilocin (the active ingredient in psilocybin mushrooms) and DMT have in common?

http://cs.wikipedia.org/wiki/Psilocin

These substances have a very similar structure to serotonin (one of the most important neurotransmitters affecting human psychology)

Psilocin

Dimethyltryptamine (DMT)

Serotonin