func (r GetResult) Extract() (*Extension, error) {
	if r.Err != nil {
		return nil, r.Err
	}
	var res struct {
		Extension *Extension `json:"extension"`
	}
	err := mapstructure.Decode(r.Body, &res)
	return res.Extension, err
}
Extract interprets a GetResult as an Extension.
package extensions
import (
	"github.com/mitchellh/mapstructure"
	"github.com/rackspace/gophercloud"
	"github.com/rackspace/gophercloud/pagination"
)
type GetResult struct {
	gophercloud.Result
}