Anything that discourages.
The act of discouraging.
The loss of confidence or enthusiasm.
That which discourages a particular behaviour; a deterrent.