I was trying to determine all metrics possible on a set $X$ when size of $X$ equals two. It is clear that the discrete metric is one possible metric. But is the only requirement that the metric assign different positive real number to $d(x,y)$ and zero to $d(x,x)$? And if so, is
$d(x,y) = r$,
$d(x,x) = 0$
a metric for every possible $r \in \mathbb R_{> 0}$?
The other case I am thinking about is $|X|=1$. Are there any other metric apart from $d(x,x) = 0$?