func (r StackPage) IsEmpty() (bool, error) {
	stacks, err := ExtractStacks(r)
	if err != nil {
		return true, err
	}
	return len(stacks) == 0, nil
}
IsEmpty returns true if a ListResult contains no Stacks.
package stacks
import (
	"encoding/json"
	"time"
	"github.com/mitchellh/mapstructure"
	"github.com/rackspace/gophercloud"
	"github.com/rackspace/gophercloud/pagination"
)
type CreatedStack struct {
	ID    string             `mapstructure:"id"`
	Links []gophercloud.Link `mapstructure:"links"`
}
type CreateResult struct {
	gophercloud.Result
}
func (r CreateResult) Extract() (*CreatedStack, error) {
	if r.Err != nil {
		return nil, r.Err
	}
	var res struct {
		Stack *CreatedStack `mapstructure:"stack"`
	}
	if err := mapstructure.Decode(r.Body, &res); err != nil {
		return nil, err
	}
	return res.Stack, nil
}
type AdoptResult struct {
	CreateResult
}
type StackPage struct {
	pagination.SinglePageBase
}