Every spherically symmetric vacuum solution of the Einstein field equation is locally a portion of Schwarzschild spacetime. In particular, a spherically symmetric body's exterior field depends only on its total mass.
New to topics? Read the docs here!