func (page TenantPage) NextPageURL() (string, error) {
	type resp struct {
		Links []gophercloud.Link `mapstructure:"tenants_links"`
	}
	var r resp
	err := mapstructure.Decode(page.Body, &r)
	if err != nil {
		return "", err
	}
	return gophercloud.ExtractNextURL(r.Links)
}
NextPageURL extracts the "next" link from the tenants_links section of the result.
package tenants
import (
	"github.com/mitchellh/mapstructure"
	"github.com/rackspace/gophercloud"
	"github.com/rackspace/gophercloud/pagination"
)
type Tenant struct {
	ID string `mapstructure:"id"`
	Name string `mapstructure:"name"`
	Description string `mapstructure:"description"`
	Enabled bool `mapstructure:"enabled"`
}
type TenantPage struct {
	pagination.LinkedPageBase
}
func (page TenantPage) IsEmpty() (bool, error) {
	tenants, err := ExtractTenants(page)
	if err != nil {
		return false, err
	}
	return len(tenants) == 0, nil
}