How To Make A Structure A Unary Structure

I'm trying to create structures that will only appear once in any given world, similar to the Stronghold. How would I do that?
Continue to help post