As all members in an ideal truss are pin-connected (meaning the nodes cannot support any moments) the members themselves can only be loaded in compression or tension, not shear. Thus, they do not experience any moment either.