pub fn set_user_default_registry( default_registry: Option<Registry>, ) -> Result<(), Error>
Sets the default registry in the user-specific configuration.
Returns an error if the configuration cannot be written.