Crystal structure of NN domain of resistance protein