Text this: Rank-metric codes as ideals for subspace codes and their weight properties