Back to godoc.org

Package websearch

v12.2.0-beta+incompatible
Latest Go to latest

The highest tagged major version is .

Published: Jan 9, 2018 | License: Apache-2.0 | Module: github.com/Azure/azure-sdk-for-go

Overview

Package websearch implements the Azure ARM Websearch service API version 1.0.

The Web Search API lets you send a search query to Bing and get back search results that include links to webpages, images, and more.

Index

Constants

const (
	// DefaultBaseURI is the default URI used for the service Websearch
	DefaultBaseURI = "https://api.cognitive.microsoft.com/bing/v7.0"
)

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type Answer

type Answer struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string  `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
}

Answer

func (Answer) AsAnswer

func (a Answer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsArticle

func (a Answer) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer

func (a Answer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicArticle

func (a Answer) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork

func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable

func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible

func (a Answer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject

func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse

func (a Answer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase

func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer

func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing

func (a Answer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsComputation

func (a Answer) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork

func (a Answer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse

func (a Answer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable

func (a Answer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject

func (a Answer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) AsImages

func (a Answer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible

func (a Answer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsMediaObject

func (a Answer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsNews

func (a Answer) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Answer.

func (Answer) AsNewsArticle

func (a Answer) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsPlaces

func (a Answer) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Answer.

func (Answer) AsRelatedSearchesRelatedSearchAnswer

func (a Answer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse

func (a Answer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsResponseBase

func (a Answer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResponse

func (a Answer) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResultsAnswer

func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsSpellSuggestions

func (a Answer) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue

func (a Answer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing

func (a Answer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTimeZone

func (a Answer) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Answer.

func (Answer) AsVideoObject

func (a Answer) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Answer.

func (Answer) AsVideos

func (a Answer) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Answer.

func (Answer) AsWebPage

func (a Answer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Answer.

func (Answer) AsWebWebAnswer

func (a Answer) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON

func (a Answer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Answer.

type AnswerType

type AnswerType string

AnswerType enumerates the values for answer type.

const (
	// AnswerTypeComputation ...
	AnswerTypeComputation AnswerType = "Computation"
	// AnswerTypeImages ...
	AnswerTypeImages AnswerType = "Images"
	// AnswerTypeNews ...
	AnswerTypeNews AnswerType = "News"
	// AnswerTypeRelatedSearches ...
	AnswerTypeRelatedSearches AnswerType = "RelatedSearches"
	// AnswerTypeSpellSuggestions ...
	AnswerTypeSpellSuggestions AnswerType = "SpellSuggestions"
	// AnswerTypeTimeZone ...
	AnswerTypeTimeZone AnswerType = "TimeZone"
	// AnswerTypeVideos ...
	AnswerTypeVideos AnswerType = "Videos"
	// AnswerTypeWebPages ...
	AnswerTypeWebPages AnswerType = "WebPages"
)

type Article

type Article struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	Text     *string       `json:"text,omitempty"`
	// WordCount - The number of words in the text of the Article.
	WordCount *int32 `json:"wordCount,omitempty"`
}

Article

func (Article) AsAnswer

func (a Article) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsArticle

func (a Article) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Article.

func (Article) AsBasicAnswer

func (a Article) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Article.

func (Article) AsBasicArticle

func (a Article) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Article.

func (Article) AsBasicCreativeWork

func (a Article) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Article.

func (Article) AsBasicIdentifiable

func (a Article) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Article.

func (Article) AsBasicIntangible

func (a Article) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Article.

func (Article) AsBasicMediaObject

func (a Article) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Article.

func (Article) AsBasicResponse

func (a Article) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Article.

func (Article) AsBasicResponseBase

func (a Article) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Article.

func (Article) AsBasicSearchResultsAnswer

func (a Article) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsBasicThing

func (a Article) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Article.

func (Article) AsComputation

func (a Article) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Article.

func (Article) AsCreativeWork

func (a Article) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Article.

func (Article) AsErrorResponse

func (a Article) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Article.

func (Article) AsIdentifiable

func (a Article) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Article.

func (Article) AsImageObject

func (a Article) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Article.

func (Article) AsImages

func (a Article) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Article.

func (Article) AsIntangible

func (a Article) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Article.

func (Article) AsMediaObject

func (a Article) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Article.

func (Article) AsNews

func (a Article) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Article.

func (Article) AsNewsArticle

func (a Article) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Article.

func (Article) AsPlaces

func (a Article) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Article.

func (Article) AsRelatedSearchesRelatedSearchAnswer

func (a Article) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Article.

func (Article) AsResponse

func (a Article) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Article.

func (Article) AsResponseBase

func (a Article) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Article.

func (Article) AsSearchResponse

func (a Article) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Article.

func (Article) AsSearchResultsAnswer

func (a Article) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsSpellSuggestions

func (a Article) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Article.

func (Article) AsStructuredValue

func (a Article) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Article.

func (Article) AsThing

func (a Article) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Article.

func (Article) AsTimeZone

func (a Article) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Article.

func (Article) AsVideoObject

func (a Article) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Article.

func (Article) AsVideos

func (a Article) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Article.

func (Article) AsWebPage

func (a Article) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Article.

func (Article) AsWebWebAnswer

func (a Article) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Article.

func (Article) MarshalJSON

func (a Article) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Article.

func (*Article) UnmarshalJSON

func (a *Article) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Article struct.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Websearch.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicAnswer

type BasicAnswer interface {
	AsWebWebAnswer() (*WebWebAnswer, bool)
	AsImages() (*Images, bool)
	AsNews() (*News, bool)
	AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
	AsSpellSuggestions() (*SpellSuggestions, bool)
	AsTimeZone() (*TimeZone, bool)
	AsVideos() (*Videos, bool)
	AsComputation() (*Computation, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
}

BasicAnswer

type BasicArticle

type BasicArticle interface {
	AsNewsArticle() (*NewsArticle, bool)
	AsArticle() (*Article, bool)
}

BasicArticle

type BasicCreativeWork

type BasicCreativeWork interface {
	AsImageObject() (*ImageObject, bool)
	AsWebPage() (*WebPage, bool)
	AsNewsArticle() (*NewsArticle, bool)
	AsVideoObject() (*VideoObject, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsArticle() (*Article, bool)
	AsBasicArticle() (BasicArticle, bool)
	AsCreativeWork() (*CreativeWork, bool)
}

BasicCreativeWork

type BasicIdentifiable

type BasicIdentifiable interface {
	AsImageObject() (*ImageObject, bool)
	AsWebPage() (*WebPage, bool)
	AsWebWebAnswer() (*WebWebAnswer, bool)
	AsImages() (*Images, bool)
	AsNewsArticle() (*NewsArticle, bool)
	AsNews() (*News, bool)
	AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
	AsSpellSuggestions() (*SpellSuggestions, bool)
	AsTimeZone() (*TimeZone, bool)
	AsVideoObject() (*VideoObject, bool)
	AsVideos() (*Videos, bool)
	AsComputation() (*Computation, bool)
	AsSearchResponse() (*SearchResponse, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsArticle() (*Article, bool)
	AsBasicArticle() (BasicArticle, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsIdentifiable() (*Identifiable, bool)
}

BasicIdentifiable defines the identity of a resource.

type BasicIntangible

type BasicIntangible interface {
	AsStructuredValue() (*StructuredValue, bool)
	AsIntangible() (*Intangible, bool)
}

BasicIntangible

type BasicMediaObject

type BasicMediaObject interface {
	AsImageObject() (*ImageObject, bool)
	AsVideoObject() (*VideoObject, bool)
	AsMediaObject() (*MediaObject, bool)
}

BasicMediaObject

type BasicResponse

type BasicResponse interface {
	AsImageObject() (*ImageObject, bool)
	AsWebPage() (*WebPage, bool)
	AsWebWebAnswer() (*WebWebAnswer, bool)
	AsImages() (*Images, bool)
	AsNewsArticle() (*NewsArticle, bool)
	AsNews() (*News, bool)
	AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
	AsSpellSuggestions() (*SpellSuggestions, bool)
	AsTimeZone() (*TimeZone, bool)
	AsVideoObject() (*VideoObject, bool)
	AsVideos() (*Videos, bool)
	AsComputation() (*Computation, bool)
	AsSearchResponse() (*SearchResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsArticle() (*Article, bool)
	AsBasicArticle() (BasicArticle, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsResponse() (*Response, bool)
}

BasicResponse defines a response. All schemas that could be returned at the root of a response should inherit from this

type BasicResponseBase

type BasicResponseBase interface {
	AsImageObject() (*ImageObject, bool)
	AsWebPage() (*WebPage, bool)
	AsWebWebAnswer() (*WebWebAnswer, bool)
	AsImages() (*Images, bool)
	AsNewsArticle() (*NewsArticle, bool)
	AsNews() (*News, bool)
	AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
	AsSpellSuggestions() (*SpellSuggestions, bool)
	AsTimeZone() (*TimeZone, bool)
	AsVideoObject() (*VideoObject, bool)
	AsVideos() (*Videos, bool)
	AsComputation() (*Computation, bool)
	AsIdentifiable() (*Identifiable, bool)
	AsBasicIdentifiable() (BasicIdentifiable, bool)
	AsSearchResponse() (*SearchResponse, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsArticle() (*Article, bool)
	AsBasicArticle() (BasicArticle, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsResponseBase() (*ResponseBase, bool)
}

BasicResponseBase

type BasicSearchResultsAnswer

type BasicSearchResultsAnswer interface {
	AsWebWebAnswer() (*WebWebAnswer, bool)
	AsImages() (*Images, bool)
	AsNews() (*News, bool)
	AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
	AsSpellSuggestions() (*SpellSuggestions, bool)
	AsTimeZone() (*TimeZone, bool)
	AsVideos() (*Videos, bool)
	AsPlaces() (*Places, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
}

BasicSearchResultsAnswer

type BasicThing

type BasicThing interface {
	AsImageObject() (*ImageObject, bool)
	AsWebPage() (*WebPage, bool)
	AsNewsArticle() (*NewsArticle, bool)
	AsVideoObject() (*VideoObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsArticle() (*Article, bool)
	AsBasicArticle() (BasicArticle, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsThing() (*Thing, bool)
}

BasicThing

type BasicWebWebGrouping

type BasicWebWebGrouping interface {
	AsWebWebGrouping() (*WebWebGrouping, bool)
}

BasicWebWebGrouping

type Computation

type Computation struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string  `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
	// Expression - The math or conversion expression. If the query contains a request to convert units of measure (for example, meters to feet), this field contains the from units and value contains the to units. If the query contains a mathematical expression such as 2+2, this field contains the expression and value contains the answer. Note that mathematical expressions may be normalized. For example, if the query was sqrt(4^2+8^2), the normalized expression may be sqrt((4^2)+(8^2)). If the user's query is a math question and the textDecorations query parameter is set to true, the expression string may include formatting markers. For example, if the user's query is log(2), the normalized expression includes the subscript markers. For more information, see Hit Highlighting.
	Expression *string `json:"expression,omitempty"`
	// Value - The expression's answer.
	Value *string `json:"value,omitempty"`
}

Computation defines an expression and its answer

func (Computation) AsAnswer

func (c Computation) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsArticle

func (c Computation) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicAnswer

func (c Computation) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicArticle

func (c Computation) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicCreativeWork

func (c Computation) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicIdentifiable

func (c Computation) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicIntangible

func (c Computation) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicMediaObject

func (c Computation) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicResponse

func (c Computation) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicResponseBase

func (c Computation) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicSearchResultsAnswer

func (c Computation) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicThing

func (c Computation) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Computation.

func (Computation) AsComputation

func (c Computation) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Computation.

func (Computation) AsCreativeWork

func (c Computation) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Computation.

func (Computation) AsErrorResponse

func (c Computation) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsIdentifiable

func (c Computation) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Computation.

func (Computation) AsImageObject

func (c Computation) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Computation.

func (Computation) AsImages

func (c Computation) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Computation.

func (Computation) AsIntangible

func (c Computation) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Computation.

func (Computation) AsMediaObject

func (c Computation) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Computation.

func (Computation) AsNews

func (c Computation) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Computation.

func (Computation) AsNewsArticle

func (c Computation) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Computation.

func (Computation) AsPlaces

func (c Computation) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Computation.

func (Computation) AsRelatedSearchesRelatedSearchAnswer

func (c Computation) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsResponse

func (c Computation) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsResponseBase

func (c Computation) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Computation.

func (Computation) AsSearchResponse

func (c Computation) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsSearchResultsAnswer

func (c Computation) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsSpellSuggestions

func (c Computation) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Computation.

func (Computation) AsStructuredValue

func (c Computation) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Computation.

func (Computation) AsThing

func (c Computation) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Computation.

func (Computation) AsTimeZone

func (c Computation) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Computation.

func (Computation) AsVideoObject

func (c Computation) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Computation.

func (Computation) AsVideos

func (c Computation) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Computation.

func (Computation) AsWebPage

func (c Computation) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Computation.

func (Computation) AsWebWebAnswer

func (c Computation) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Computation.

func (Computation) MarshalJSON

func (c Computation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Computation.

type CreativeWork

type CreativeWork struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	Text     *string       `json:"text,omitempty"`
}

CreativeWork

func (CreativeWork) AsAnswer

func (cw CreativeWork) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsArticle

func (cw CreativeWork) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer

func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicArticle

func (cw CreativeWork) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork

func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable

func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible

func (cw CreativeWork) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject

func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse

func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase

func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicSearchResultsAnswer

func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing

func (cw CreativeWork) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsComputation

func (cw CreativeWork) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork

func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse

func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable

func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject

func (cw CreativeWork) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImages

func (cw CreativeWork) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible

func (cw CreativeWork) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject

func (cw CreativeWork) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNews

func (cw CreativeWork) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNewsArticle

func (cw CreativeWork) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPlaces

func (cw CreativeWork) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRelatedSearchesRelatedSearchAnswer

func (cw CreativeWork) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse

func (cw CreativeWork) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase

func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResponse

func (cw CreativeWork) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResultsAnswer

func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSpellSuggestions

func (cw CreativeWork) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue

func (cw CreativeWork) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing

func (cw CreativeWork) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsTimeZone

func (cw CreativeWork) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsVideoObject

func (cw CreativeWork) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsVideos

func (cw CreativeWork) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebPage

func (cw CreativeWork) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebWebAnswer

func (cw CreativeWork) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON

func (cw CreativeWork) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON

func (cw *CreativeWork) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type Error

type Error struct {
	// Code - The error code that identifies the category of error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'
	Code ErrorCode `json:"code,omitempty"`
	// SubCode - The error code that further helps to identify the error. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HTTPNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired'
	SubCode ErrorSubCode `json:"subCode,omitempty"`
	// Message - A description of the error.
	Message *string `json:"message,omitempty"`
	// MoreDetails - A description that provides additional information about the error.
	MoreDetails *string `json:"moreDetails,omitempty"`
	// Parameter - The parameter in the request that caused the error.
	Parameter *string `json:"parameter,omitempty"`
	// Value - The parameter's value in the request that was not valid.
	Value *string `json:"value,omitempty"`
}

Error defines the error that occurred.

type ErrorCode

type ErrorCode string

ErrorCode enumerates the values for error code.

const (
	// InsufficientAuthorization ...
	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
	// InvalidAuthorization ...
	InvalidAuthorization ErrorCode = "InvalidAuthorization"
	// InvalidRequest ...
	InvalidRequest ErrorCode = "InvalidRequest"
	// None ...
	None ErrorCode = "None"
	// RateLimitExceeded ...
	RateLimitExceeded ErrorCode = "RateLimitExceeded"
	// ServerError ...
	ServerError ErrorCode = "ServerError"
)

type ErrorResponse

type ErrorResponse struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Errors - A list of errors that describe the reasons why the request failed.
	Errors *[]Error `json:"errors,omitempty"`
}

ErrorResponse the top-level response that represents a failed request.

func (ErrorResponse) AsAnswer

func (er ErrorResponse) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsArticle

func (er ErrorResponse) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer

func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicArticle

func (er ErrorResponse) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork

func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable

func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible

func (er ErrorResponse) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicMediaObject

func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponse

func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponseBase

func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicSearchResultsAnswer

func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicThing

func (er ErrorResponse) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsComputation

func (er ErrorResponse) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCreativeWork

func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse

func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable

func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject

func (er ErrorResponse) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImages

func (er ErrorResponse) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible

func (er ErrorResponse) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMediaObject

func (er ErrorResponse) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNews

func (er ErrorResponse) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNewsArticle

func (er ErrorResponse) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPlaces

func (er ErrorResponse) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRelatedSearchesRelatedSearchAnswer

func (er ErrorResponse) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponse

func (er ErrorResponse) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponseBase

func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResponse

func (er ErrorResponse) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResultsAnswer

func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSpellSuggestions

func (er ErrorResponse) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsStructuredValue

func (er ErrorResponse) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsThing

func (er ErrorResponse) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsTimeZone

func (er ErrorResponse) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsVideoObject

func (er ErrorResponse) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsVideos

func (er ErrorResponse) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebPage

func (er ErrorResponse) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebWebAnswer

func (er ErrorResponse) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type ErrorSubCode

type ErrorSubCode string

ErrorSubCode enumerates the values for error sub code.

const (
	// AuthorizationDisabled ...
	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
	// AuthorizationExpired ...
	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
	// AuthorizationMissing ...
	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
	// AuthorizationRedundancy ...
	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
	// Blocked ...
	Blocked ErrorSubCode = "Blocked"
	// HTTPNotAllowed ...
	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
	// NotImplemented ...
	NotImplemented ErrorSubCode = "NotImplemented"
	// ParameterInvalidValue ...
	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
	// ParameterMissing ...
	ParameterMissing ErrorSubCode = "ParameterMissing"
	// ResourceError ...
	ResourceError ErrorSubCode = "ResourceError"
	// UnexpectedError ...
	UnexpectedError ErrorSubCode = "UnexpectedError"
)

type Freshness

type Freshness string

Freshness enumerates the values for freshness.

const (
	// Day ...
	Day Freshness = "Day"
	// Month ...
	Month Freshness = "Month"
	// Week ...
	Week Freshness = "Week"
)

type Identifiable

type Identifiable struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAnswer

func (i Identifiable) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsArticle

func (i Identifiable) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer

func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicArticle

func (i Identifiable) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork

func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable

func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible

func (i Identifiable) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicMediaObject

func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponse

func (i Identifiable) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponseBase

func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicSearchResultsAnswer

func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicThing

func (i Identifiable) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsComputation

func (i Identifiable) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCreativeWork

func (i Identifiable) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse

func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable

func (i Identifiable) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject

func (i Identifiable) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImages

func (i Identifiable) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible

func (i Identifiable) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMediaObject

func (i Identifiable) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNews

func (i Identifiable) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNewsArticle

func (i Identifiable) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPlaces

func (i Identifiable) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRelatedSearchesRelatedSearchAnswer

func (i Identifiable) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponse

func (i Identifiable) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponseBase

func (i Identifiable) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResponse

func (i Identifiable) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResultsAnswer

func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSpellSuggestions

func (i Identifiable) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsStructuredValue

func (i Identifiable) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsThing

func (i Identifiable) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsTimeZone

func (i Identifiable) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsVideoObject

func (i Identifiable) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsVideos

func (i Identifiable) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebPage

func (i Identifiable) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebWebAnswer

func (i Identifiable) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON

func (i Identifiable) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Identifiable.

type ImageObject

type ImageObject struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	Text     *string       `json:"text,omitempty"`
	// ContentURL - Original URL to retrieve the source (file) for the media object (e.g the source URL for the image).
	ContentURL *string `json:"contentUrl,omitempty"`
	// HostPageURL - URL of the page that hosts the media object.
	HostPageURL *string `json:"hostPageUrl,omitempty"`
	// Width - The width of the source media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - The height of the source media object, in pixels.
	Height *int32 `json:"height,omitempty"`
	// Thumbnail - The URL to a thumbnail of the image
	Thumbnail *ImageObject `json:"thumbnail,omitempty"`
}

ImageObject defines an image

func (ImageObject) AsAnswer

func (ioVar ImageObject) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsArticle

func (ioVar ImageObject) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAnswer

func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicArticle

func (ioVar ImageObject) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCreativeWork

func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIdentifiable

func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIntangible

func (ioVar ImageObject) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicMediaObject

func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponse

func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponseBase

func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicSearchResultsAnswer

func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicThing

func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsComputation

func (ioVar ImageObject) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCreativeWork

func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsErrorResponse

func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIdentifiable

func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject

func (ioVar ImageObject) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImages

func (ioVar ImageObject) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIntangible

func (ioVar ImageObject) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMediaObject

func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNews

func (ioVar ImageObject) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNewsArticle

func (ioVar ImageObject) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPlaces

func (ioVar ImageObject) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRelatedSearchesRelatedSearchAnswer

func (ioVar ImageObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponse

func (ioVar ImageObject) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponseBase

func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResponse

func (ioVar ImageObject) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResultsAnswer

func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSpellSuggestions

func (ioVar ImageObject) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsStructuredValue

func (ioVar ImageObject) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsThing

func (ioVar ImageObject) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsTimeZone

func (ioVar ImageObject) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsVideoObject

func (ioVar ImageObject) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsVideos

func (ioVar ImageObject) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebPage

func (ioVar ImageObject) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebWebAnswer

func (ioVar ImageObject) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) MarshalJSON

func (ioVar ImageObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageObject.

func (*ImageObject) UnmarshalJSON

func (ioVar *ImageObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageObject struct.

type Images

type Images struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string       `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query      `json:"followUpQueries,omitempty"`
	QueryContext    *QueryContext `json:"queryContext,omitempty"`
	// TotalEstimatedMatches - The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	IsFamilyFriendly      *bool  `json:"isFamilyFriendly,omitempty"`
	NextOffset            *int32 `json:"nextOffset,omitempty"`
	// Value - A list of image objects that are relevant to the query. If there are no results, the List is empty.
	Value           *[]ImageObject `json:"value,omitempty"`
	QueryExpansions *[]Query       `json:"queryExpansions,omitempty"`
	SimilarTerms    *[]Query       `json:"similarTerms,omitempty"`
	RelatedSearches *[]Query       `json:"relatedSearches,omitempty"`
}

Images defines an image answer

func (Images) AsAnswer

func (i Images) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsArticle

func (i Images) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Images.

func (Images) AsBasicAnswer

func (i Images) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicArticle

func (i Images) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Images.

func (Images) AsBasicCreativeWork

func (i Images) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsBasicIdentifiable

func (i Images) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsBasicIntangible

func (i Images) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Images.

func (Images) AsBasicMediaObject

func (i Images) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponse

func (i Images) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponseBase

func (i Images) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsBasicSearchResultsAnswer

func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicThing

func (i Images) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Images.

func (Images) AsComputation

func (i Images) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Images.

func (Images) AsCreativeWork

func (i Images) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsErrorResponse

func (i Images) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Images.

func (Images) AsIdentifiable

func (i Images) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsImageObject

func (i Images) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Images.

func (Images) AsImages

func (i Images) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Images.

func (Images) AsIntangible

func (i Images) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Images.

func (Images) AsMediaObject

func (i Images) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsNews

func (i Images) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Images.

func (Images) AsNewsArticle

func (i Images) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Images.

func (Images) AsPlaces

func (i Images) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Images.

func (Images) AsRelatedSearchesRelatedSearchAnswer

func (i Images) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Images.

func (Images) AsResponse

func (i Images) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Images.

func (Images) AsResponseBase

func (i Images) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsSearchResponse

func (i Images) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Images.

func (Images) AsSearchResultsAnswer

func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsSpellSuggestions

func (i Images) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Images.

func (Images) AsStructuredValue

func (i Images) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsThing

func (i Images) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Images.

func (Images) AsTimeZone

func (i Images) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Images.

func (Images) AsVideoObject

func (i Images) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Images.

func (Images) AsVideos

func (i Images) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Images.

func (Images) AsWebPage

func (i Images) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Images.

func (Images) AsWebWebAnswer

func (i Images) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Images.

func (Images) MarshalJSON

func (i Images) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Images.

type Intangible

type Intangible struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
}

Intangible

func (Intangible) AsAnswer

func (i Intangible) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsArticle

func (i Intangible) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAnswer

func (i Intangible) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicArticle

func (i Intangible) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCreativeWork

func (i Intangible) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIdentifiable

func (i Intangible) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIntangible

func (i Intangible) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicMediaObject

func (i Intangible) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponse

func (i Intangible) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponseBase

func (i Intangible) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicSearchResultsAnswer

func (i Intangible) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicThing

func (i Intangible) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsComputation

func (i Intangible) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCreativeWork

func (i Intangible) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsErrorResponse

func (i Intangible) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIdentifiable

func (i Intangible) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageObject

func (i Intangible) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImages

func (i Intangible) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIntangible

func (i Intangible) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsMediaObject

func (i Intangible) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsNews

func (i Intangible) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Intangible.

func (Intangible) AsNewsArticle

func (i Intangible) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPlaces

func (i Intangible) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRelatedSearchesRelatedSearchAnswer

func (i Intangible) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponse

func (i Intangible) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponseBase

func (i Intangible) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSearchResponse

func (i Intangible) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSearchResultsAnswer

func (i Intangible) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSpellSuggestions

func (i Intangible) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Intangible.

func (Intangible) AsStructuredValue

func (i Intangible) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsThing

func (i Intangible) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsTimeZone

func (i Intangible) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Intangible.

func (Intangible) AsVideoObject

func (i Intangible) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsVideos

func (i Intangible) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Intangible.

func (Intangible) AsWebPage

func (i Intangible) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Intangible.

func (Intangible) AsWebWebAnswer

func (i Intangible) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) MarshalJSON

func (i Intangible) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Intangible.

type MediaObject

type MediaObject struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	Text     *string       `json:"text,omitempty"`
	// ContentURL - Original URL to retrieve the source (file) for the media object (e.g the source URL for the image).
	ContentURL *string `json:"contentUrl,omitempty"`
	// HostPageURL - URL of the page that hosts the media object.
	HostPageURL *string `json:"hostPageUrl,omitempty"`
	// Width - The width of the source media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - The height of the source media object, in pixels.
	Height *int32 `json:"height,omitempty"`
}

MediaObject

func (MediaObject) AsAnswer

func (mo MediaObject) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsArticle

func (mo MediaObject) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicAnswer

func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicArticle

func (mo MediaObject) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicCreativeWork

func (mo MediaObject) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicIdentifiable

func (mo MediaObject) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicIntangible

func (mo MediaObject) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicMediaObject

func (mo MediaObject) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicResponse

func (mo MediaObject) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicResponseBase

func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicSearchResultsAnswer

func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicThing

func (mo MediaObject) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsComputation

func (mo MediaObject) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsCreativeWork

func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsErrorResponse

func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsIdentifiable

func (mo MediaObject) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageObject

func (mo MediaObject) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImages

func (mo MediaObject) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsIntangible

func (mo MediaObject) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsMediaObject

func (mo MediaObject) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsNews

func (mo MediaObject) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsNewsArticle

func (mo MediaObject) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsPlaces

func (mo MediaObject) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRelatedSearchesRelatedSearchAnswer

func (mo MediaObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsResponse

func (mo MediaObject) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsResponseBase

func (mo MediaObject) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsSearchResponse

func (mo MediaObject) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsSearchResultsAnswer

func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsSpellSuggestions

func (mo MediaObject) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsStructuredValue

func (mo MediaObject) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsThing

func (mo MediaObject) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsTimeZone

func (mo MediaObject) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsVideoObject

func (mo MediaObject) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsVideos

func (mo MediaObject) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsWebPage

func (mo MediaObject) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsWebWebAnswer

func (mo MediaObject) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) MarshalJSON

func (mo MediaObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MediaObject.

func (*MediaObject) UnmarshalJSON

func (mo *MediaObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MediaObject struct.

type News

type News struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string       `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query      `json:"followUpQueries,omitempty"`
	QueryContext    *QueryContext `json:"queryContext,omitempty"`
	// TotalEstimatedMatches - The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	IsFamilyFriendly      *bool  `json:"isFamilyFriendly,omitempty"`
	// Value - An array of NewsArticle objects that contain information about news articles that are relevant to the query. If there are no results to return for the request, the array is empty.
	Value    *[]NewsArticle `json:"value,omitempty"`
	Location *string        `json:"location,omitempty"`
}

News defines a news answer.

func (News) AsAnswer

func (n News) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for News.

func (News) AsArticle

func (n News) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for News.

func (News) AsBasicAnswer

func (n News) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for News.

func (News) AsBasicArticle

func (n News) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for News.

func (News) AsBasicCreativeWork

func (n News) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for News.

func (News) AsBasicIdentifiable

func (n News) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for News.

func (News) AsBasicIntangible

func (n News) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for News.

func (News) AsBasicMediaObject

func (n News) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for News.

func (News) AsBasicResponse

func (n News) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for News.

func (News) AsBasicResponseBase

func (n News) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for News.

func (News) AsBasicSearchResultsAnswer

func (n News) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for News.

func (News) AsBasicThing

func (n News) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for News.

func (News) AsComputation

func (n News) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for News.

func (News) AsCreativeWork

func (n News) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for News.

func (News) AsErrorResponse

func (n News) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for News.

func (News) AsIdentifiable

func (n News) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for News.

func (News) AsImageObject

func (n News) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for News.

func (News) AsImages

func (n News) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for News.

func (News) AsIntangible

func (n News) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for News.

func (News) AsMediaObject

func (n News) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for News.

func (News) AsNews

func (n News) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for News.

func (News) AsNewsArticle

func (n News) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for News.

func (News) AsPlaces

func (n News) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for News.

func (News) AsRelatedSearchesRelatedSearchAnswer

func (n News) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for News.

func (News) AsResponse

func (n News) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for News.

func (News) AsResponseBase

func (n News) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for News.

func (News) AsSearchResponse

func (n News) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for News.

func (News) AsSearchResultsAnswer

func (n News) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for News.

func (News) AsSpellSuggestions

func (n News) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for News.

func (News) AsStructuredValue

func (n News) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for News.

func (News) AsThing

func (n News) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for News.

func (News) AsTimeZone

func (n News) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for News.

func (News) AsVideoObject

func (n News) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for News.

func (News) AsVideos

func (n News) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for News.

func (News) AsWebPage

func (n News) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for News.

func (News) AsWebWebAnswer

func (n News) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for News.

func (News) MarshalJSON

func (n News) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for News.

type NewsArticle

type NewsArticle struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	Text     *string       `json:"text,omitempty"`
	// WordCount - The number of words in the text of the Article.
	WordCount *int32 `json:"wordCount,omitempty"`
}

NewsArticle defines a news article.

func (NewsArticle) AsAnswer

func (na NewsArticle) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsArticle

func (na NewsArticle) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicAnswer

func (na NewsArticle) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicArticle

func (na NewsArticle) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicCreativeWork

func (na NewsArticle) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicIdentifiable

func (na NewsArticle) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicIntangible

func (na NewsArticle) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicMediaObject

func (na NewsArticle) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicResponse

func (na NewsArticle) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicResponseBase

func (na NewsArticle) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicSearchResultsAnswer

func (na NewsArticle) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicThing

func (na NewsArticle) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsComputation

func (na NewsArticle) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsCreativeWork

func (na NewsArticle) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsErrorResponse

func (na NewsArticle) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsIdentifiable

func (na NewsArticle) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsImageObject

func (na NewsArticle) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsImages

func (na NewsArticle) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsIntangible

func (na NewsArticle) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsMediaObject

func (na NewsArticle) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsNews

func (na NewsArticle) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsNewsArticle

func (na NewsArticle) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsPlaces

func (na NewsArticle) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsRelatedSearchesRelatedSearchAnswer

func (na NewsArticle) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsResponse

func (na NewsArticle) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsResponseBase

func (na NewsArticle) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsSearchResponse

func (na NewsArticle) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsSearchResultsAnswer

func (na NewsArticle) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsSpellSuggestions

func (na NewsArticle) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsStructuredValue

func (na NewsArticle) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsThing

func (na NewsArticle) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsTimeZone

func (na NewsArticle) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsVideoObject

func (na NewsArticle) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsVideos

func (na NewsArticle) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsWebPage

func (na NewsArticle) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsWebWebAnswer

func (na NewsArticle) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) MarshalJSON

func (na NewsArticle) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NewsArticle.

func (*NewsArticle) UnmarshalJSON

func (na *NewsArticle) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NewsArticle struct.

type Places

type Places struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string       `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query      `json:"followUpQueries,omitempty"`
	QueryContext    *QueryContext `json:"queryContext,omitempty"`
	// TotalEstimatedMatches - The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	IsFamilyFriendly      *bool  `json:"isFamilyFriendly,omitempty"`
	// Value - A list of local entities, such as restaurants or hotels.
	Value *[]BasicThing `json:"value,omitempty"`
}

Places defines a local entity answer.

func (Places) AsAnswer

func (p Places) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsArticle

func (p Places) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Places.

func (Places) AsBasicAnswer

func (p Places) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicArticle

func (p Places) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Places.

func (Places) AsBasicCreativeWork

func (p Places) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Places.

func (Places) AsBasicIdentifiable

func (p Places) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Places.

func (Places) AsBasicIntangible

func (p Places) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Places.

func (Places) AsBasicMediaObject

func (p Places) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Places.

func (Places) AsBasicResponse

func (p Places) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Places.

func (Places) AsBasicResponseBase

func (p Places) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Places.

func (Places) AsBasicSearchResultsAnswer

func (p Places) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicThing

func (p Places) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Places.

func (Places) AsComputation

func (p Places) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Places.

func (Places) AsCreativeWork

func (p Places) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Places.

func (Places) AsErrorResponse

func (p Places) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Places.

func (Places) AsIdentifiable

func (p Places) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Places.

func (Places) AsImageObject

func (p Places) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Places.

func (Places) AsImages

func (p Places) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Places.

func (Places) AsIntangible

func (p Places) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Places.

func (Places) AsMediaObject

func (p Places) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Places.

func (Places) AsNews

func (p Places) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Places.

func (Places) AsNewsArticle

func (p Places) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Places.

func (Places) AsPlaces

func (p Places) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Places.

func (Places) AsRelatedSearchesRelatedSearchAnswer

func (p Places) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Places.

func (Places) AsResponse

func (p Places) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Places.

func (Places) AsResponseBase

func (p Places) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Places.

func (Places) AsSearchResponse

func (p Places) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Places.

func (Places) AsSearchResultsAnswer

func (p Places) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsSpellSuggestions

func (p Places) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Places.

func (Places) AsStructuredValue

func (p Places) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Places.

func (Places) AsThing

func (p Places) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Places.

func (Places) AsTimeZone

func (p Places) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Places.

func (Places) AsVideoObject

func (p Places) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Places.

func (Places) AsVideos

func (p Places) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Places.

func (Places) AsWebPage

func (p Places) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Places.

func (Places) AsWebWebAnswer

func (p Places) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Places.

func (Places) MarshalJSON

func (p Places) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Places.

func (*Places) UnmarshalJSON

func (p *Places) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Places struct.

type Query

type Query struct {
	// Text - The query string. Use this string as the query term in a new search request.
	Text *string `json:"text,omitempty"`
	// DisplayText - The display version of the query term. This version of the query term may contain special characters that highlight the search term found in the query string. The string contains the highlighting characters only if the query enabled hit highlighting
	DisplayText *string `json:"displayText,omitempty"`
	// WebSearchURL - The URL that takes the user to the Bing search results page for the query.Only related search results include this field.
	WebSearchURL *string      `json:"webSearchUrl,omitempty"`
	SearchLink   *string      `json:"searchLink,omitempty"`
	Thumbnail    *ImageObject `json:"thumbnail,omitempty"`
}

Query defines a search query.

type QueryContext

type QueryContext struct {
	// OriginalQuery - The query string as specified in the request.
	OriginalQuery *string `json:"originalQuery,omitempty"`
	// AlteredQuery - The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake.
	AlteredQuery *string `json:"alteredQuery,omitempty"`
	// AlterationOverrideQuery - The query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake.
	AlterationOverrideQuery *string `json:"alterationOverrideQuery,omitempty"`
	// AdultIntent - A Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false.
	AdultIntent *bool `json:"adultIntent,omitempty"`
	// AskUserForLocation - A Boolean value that indicates whether Bing requires the user's location to provide accurate results. If you specified the user's location by using the X-MSEdge-ClientIP and X-Search-Location headers, you can ignore this field. For location aware queries, such as "today's weather" or "restaurants near me" that need the user's location to provide accurate results, this field is set to true. For location aware queries that include the location (for example, "Seattle weather"), this field is set to false. This field is also set to false for queries that are not location aware, such as "best sellers".
	AskUserForLocation *bool `json:"askUserForLocation,omitempty"`
	IsTransactional    *bool `json:"isTransactional,omitempty"`
}

QueryContext defines the query context that Bing used for the request.

type RankingRankingGroup

type RankingRankingGroup struct {
	// Items - A list of search result items to display in the group.
	Items *[]RankingRankingItem `json:"items,omitempty"`
}

RankingRankingGroup defines a search results group, such as mainline.

type RankingRankingItem

type RankingRankingItem struct {
	// AnswerType - The answer that contains the item to display. Use the type to find the answer in the SearchResponse object. The type is the name of a SearchResponse field. Possible values include: 'AnswerTypeWebPages', 'AnswerTypeImages', 'AnswerTypeSpellSuggestions', 'AnswerTypeNews', 'AnswerTypeRelatedSearches', 'AnswerTypeVideos', 'AnswerTypeComputation', 'AnswerTypeTimeZone'
	AnswerType AnswerType `json:"answerType,omitempty"`
	// ResultIndex - A zero-based index of the item in the answer.If the item does not include this field, display all items in the answer. For example, display all news articles in the News answer.
	ResultIndex *int32 `json:"resultIndex,omitempty"`
	// Value - The ID that identifies either an answer to display or an item of an answer to display. If the ID identifies an answer, display all items of the answer.
	Value           BasicIdentifiable `json:"value,omitempty"`
	HTMLIndex       *int32            `json:"htmlIndex,omitempty"`
	TextualIndex    *int32            `json:"textualIndex,omitempty"`
	ScreenshotIndex *int32            `json:"screenshotIndex,omitempty"`
}

RankingRankingItem defines a search result item to display

func (*RankingRankingItem) UnmarshalJSON

func (rri *RankingRankingItem) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RankingRankingItem struct.

type RankingRankingResponse

type RankingRankingResponse struct {
	// Pole - The search results that should be afforded the most visible treatment (for example, displayed above the mainline and sidebar).
	Pole *RankingRankingGroup `json:"pole,omitempty"`
	// Mainline - The search results to display in the mainline.
	Mainline *RankingRankingGroup `json:"mainline,omitempty"`
	// Sidebar - The search results to display in the sidebar.
	Sidebar *RankingRankingGroup `json:"sidebar,omitempty"`
}

RankingRankingResponse defines where on the search results page content should be placed and in what order.

type RelatedSearchesRelatedSearchAnswer

type RelatedSearchesRelatedSearchAnswer struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string       `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query      `json:"followUpQueries,omitempty"`
	QueryContext    *QueryContext `json:"queryContext,omitempty"`
	// TotalEstimatedMatches - The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	IsFamilyFriendly      *bool  `json:"isFamilyFriendly,omitempty"`
	// Value - A list of related queries that were made by others.
	Value *[]Query `json:"value,omitempty"`
}

RelatedSearchesRelatedSearchAnswer defines a list of related queries made by others.

func (RelatedSearchesRelatedSearchAnswer) AsAnswer

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsArticle

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicAnswer

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicArticle

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicCreativeWork

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicIdentifiable

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicIntangible

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicMediaObject

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicResponse

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicResponseBase

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicSearchResultsAnswer

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicThing

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsComputation

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsCreativeWork

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsErrorResponse

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsIdentifiable

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsImageObject

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsImages

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsIntangible

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsMediaObject

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsNews

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsNewsArticle

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsPlaces

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsRelatedSearchesRelatedSearchAnswer

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsResponse

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsResponseBase

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsSearchResponse

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsSearchResultsAnswer

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsSpellSuggestions

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsStructuredValue

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsThing

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsTimeZone

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsVideoObject

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsVideos

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsWebPage

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsWebWebAnswer

func (rsrsa RelatedSearchesRelatedSearchAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) MarshalJSON

func (rsrsa RelatedSearchesRelatedSearchAnswer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RelatedSearchesRelatedSearchAnswer.

type Response

type Response struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
}

Response defines a response. All schemas that could be returned at the root of a response should inherit from this

func (Response) AsAnswer

func (r Response) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsArticle

func (r Response) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Response.

func (Response) AsBasicAnswer

func (r Response) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicArticle

func (r Response) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Response.

func (Response) AsBasicCreativeWork

func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Response.

func (Response) AsBasicIdentifiable

func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Response.

func (Response) AsBasicIntangible

func (r Response) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Response.

func (Response) AsBasicMediaObject

func (r Response) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Response.

func (Response) AsBasicResponse

func (r Response) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Response.

func (Response) AsBasicResponseBase

func (r Response) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Response.

func (Response) AsBasicSearchResultsAnswer

func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicThing

func (r Response) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Response.

func (Response) AsComputation

func (r Response) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Response.

func (Response) AsCreativeWork

func (r Response) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Response.

func (Response) AsErrorResponse

func (r Response) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Response.

func (Response) AsIdentifiable

func (r Response) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Response.

func (Response) AsImageObject

func (r Response) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Response.

func (Response) AsImages

func (r Response) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Response.

func (Response) AsIntangible

func (r Response) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Response.

func (Response) AsMediaObject

func (r Response) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Response.

func (Response) AsNews

func (r Response) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Response.

func (Response) AsNewsArticle

func (r Response) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Response.

func (Response) AsPlaces

func (r Response) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Response.

func (Response) AsRelatedSearchesRelatedSearchAnswer

func (r Response) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Response.

func (Response) AsResponse

func (r Response) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Response.

func (Response) AsResponseBase

func (r Response) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Response.

func (Response) AsSearchResponse

func (r Response) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Response.

func (Response) AsSearchResultsAnswer

func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsSpellSuggestions

func (r Response) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Response.

func (Response) AsStructuredValue

func (r Response) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Response.

func (Response) AsThing

func (r Response) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Response.

func (Response) AsTimeZone

func (r Response) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Response.

func (Response) AsVideoObject

func (r Response) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Response.

func (Response) AsVideos

func (r Response) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Response.

func (Response) AsWebPage

func (r Response) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Response.

func (Response) AsWebWebAnswer

func (r Response) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Response.

func (Response) MarshalJSON

func (r Response) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Response.

type ResponseBase

type ResponseBase struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ResponseBase

func (ResponseBase) AsAnswer

func (rb ResponseBase) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsArticle

func (rb ResponseBase) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicAnswer

func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicArticle

func (rb ResponseBase) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicCreativeWork

func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicIdentifiable

func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicIntangible

func (rb ResponseBase) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicMediaObject

func (rb ResponseBase) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicResponse

func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicResponseBase

func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicSearchResultsAnswer

func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicThing

func (rb ResponseBase) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsComputation

func (rb ResponseBase) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsCreativeWork

func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsErrorResponse

func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsIdentifiable

func (rb ResponseBase) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageObject

func (rb ResponseBase) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImages

func (rb ResponseBase) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsIntangible

func (rb ResponseBase) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsMediaObject

func (rb ResponseBase) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsNews

func (rb ResponseBase) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsNewsArticle

func (rb ResponseBase) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsPlaces

func (rb ResponseBase) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsRelatedSearchesRelatedSearchAnswer

func (rb ResponseBase) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponse

func (rb ResponseBase) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponseBase

func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResponse

func (rb ResponseBase) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResultsAnswer

func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSpellSuggestions

func (rb ResponseBase) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsStructuredValue

func (rb ResponseBase) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsThing

func (rb ResponseBase) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsTimeZone

func (rb ResponseBase) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsVideoObject

func (rb ResponseBase) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsVideos

func (rb ResponseBase) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsWebPage

func (rb ResponseBase) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsWebWebAnswer

func (rb ResponseBase) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) MarshalJSON

func (rb ResponseBase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResponseBase.

type SafeSearch

type SafeSearch string

SafeSearch enumerates the values for safe search.

const (
	// Moderate ...
	Moderate SafeSearch = "Moderate"
	// Off ...
	Off SafeSearch = "Off"
	// Strict ...
	Strict SafeSearch = "Strict"
)

type SearchResponse

type SearchResponse struct {
	autorest.Response `json:"-"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// QueryContext - An object that contains the query string that Bing used for the request. This object contains the query string as entered by the user. It may also contain an altered query string that Bing used for the query if the query string contained a spelling mistake.
	QueryContext *QueryContext `json:"queryContext,omitempty"`
	// WebPages - A list of webpages that are relevant to the search query.
	WebPages *WebWebAnswer `json:"webPages,omitempty"`
	// Images - A list of images that are relevant to the search query.
	Images *Images `json:"images,omitempty"`
	// News - A list of news articles that are relevant to the search query.
	News *News `json:"news,omitempty"`
	// RelatedSearches - A list of related queries made by others.
	RelatedSearches *RelatedSearchesRelatedSearchAnswer `json:"relatedSearches,omitempty"`
	// SpellSuggestions - The query string that likely represents the user's intent.
	SpellSuggestions *SpellSuggestions `json:"spellSuggestions,omitempty"`
	// TimeZone - The date and time of one or more geographic locations.
	TimeZone *TimeZone `json:"timeZone,omitempty"`
	// Videos - A list of videos that are relevant to the search query.
	Videos *Videos `json:"videos,omitempty"`
	// Computation - The answer to a math expression or units conversion expression.
	Computation *Computation `json:"computation,omitempty"`
	// RankingResponse - The order that Bing suggests that you display the search results in.
	RankingResponse *RankingRankingResponse `json:"rankingResponse,omitempty"`
}

SearchResponse defines the top-level object that the response includes when the request succeeds.

func (SearchResponse) AsAnswer

func (sr SearchResponse) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsArticle

func (sr SearchResponse) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicAnswer

func (sr SearchResponse) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicArticle

func (sr SearchResponse) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicCreativeWork

func (sr SearchResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicIdentifiable

func (sr SearchResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicIntangible

func (sr SearchResponse) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicMediaObject

func (sr SearchResponse) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicResponse

func (sr SearchResponse) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicResponseBase

func (sr SearchResponse) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicSearchResultsAnswer

func (sr SearchResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicThing

func (sr SearchResponse) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsComputation

func (sr SearchResponse) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsCreativeWork

func (sr SearchResponse) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsErrorResponse

func (sr SearchResponse) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsIdentifiable

func (sr SearchResponse) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsImageObject

func (sr SearchResponse) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsImages

func (sr SearchResponse) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsIntangible

func (sr SearchResponse) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsMediaObject

func (sr SearchResponse) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsNews

func (sr SearchResponse) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsNewsArticle

func (sr SearchResponse) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsPlaces

func (sr SearchResponse) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsRelatedSearchesRelatedSearchAnswer

func (sr SearchResponse) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsResponse

func (sr SearchResponse) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsResponseBase

func (sr SearchResponse) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchResponse

func (sr SearchResponse) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchResultsAnswer

func (sr SearchResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSpellSuggestions

func (sr SearchResponse) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsStructuredValue

func (sr SearchResponse) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsThing

func (sr SearchResponse) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsTimeZone

func (sr SearchResponse) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsVideoObject

func (sr SearchResponse) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsVideos

func (sr SearchResponse) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsWebPage

func (sr SearchResponse) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsWebWebAnswer

func (sr SearchResponse) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) MarshalJSON

func (sr SearchResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SearchResponse.

type SearchResultsAnswer

type SearchResultsAnswer struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string       `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query      `json:"followUpQueries,omitempty"`
	QueryContext    *QueryContext `json:"queryContext,omitempty"`
	// TotalEstimatedMatches - The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	IsFamilyFriendly      *bool  `json:"isFamilyFriendly,omitempty"`
}

SearchResultsAnswer

func (SearchResultsAnswer) AsAnswer

func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsArticle

func (sra SearchResultsAnswer) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicAnswer

func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicArticle

func (sra SearchResultsAnswer) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicCreativeWork

func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIdentifiable

func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIntangible

func (sra SearchResultsAnswer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicMediaObject

func (sra SearchResultsAnswer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponse

func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponseBase

func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicSearchResultsAnswer

func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicThing

func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsComputation

func (sra SearchResultsAnswer) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsCreativeWork

func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsErrorResponse

func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIdentifiable

func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImageObject

func (sra SearchResultsAnswer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImages

func (sra SearchResultsAnswer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIntangible

func (sra SearchResultsAnswer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsMediaObject

func (sra SearchResultsAnswer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsNews

func (sra SearchResultsAnswer) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsNewsArticle

func (sra SearchResultsAnswer) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsPlaces

func (sra SearchResultsAnswer) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsRelatedSearchesRelatedSearchAnswer

func (sra SearchResultsAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponse

func (sra SearchResultsAnswer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponseBase

func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResponse

func (sra SearchResultsAnswer) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResultsAnswer

func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSpellSuggestions

func (sra SearchResultsAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsStructuredValue

func (sra SearchResultsAnswer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsThing

func (sra SearchResultsAnswer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsTimeZone

func (sra SearchResultsAnswer) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsVideoObject

func (sra SearchResultsAnswer) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsVideos

func (sra SearchResultsAnswer) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsWebPage

func (sra SearchResultsAnswer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsWebWebAnswer

func (sra SearchResultsAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) MarshalJSON

func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SearchResultsAnswer.

type SpellSuggestions

type SpellSuggestions struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL    *string       `json:"webSearchUrl,omitempty"`
	FollowUpQueries *[]Query      `json:"followUpQueries,omitempty"`
	QueryContext    *QueryContext `json:"queryContext,omitempty"`
	// TotalEstimatedMatches - The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	IsFamilyFriendly      *bool  `json:"isFamilyFriendly,omitempty"`
	// Value - A list of suggested query strings that may represent the user's intention. The list contains only one Query object.
	Value *[]Query `json:"value,omitempty"`
}

SpellSuggestions defines a suggested query string that likely represents the user's intent. The search results include this response if Bing determines that the user may have intended to search for something different. For example, if the user searches for alon brown, Bing may determine that the user likely intended to search for Alton Brown instead (based on past searches by others of Alon Brown).

func (SpellSuggestions) AsAnswer

func (ss SpellSuggestions) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsArticle

func (ss SpellSuggestions) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicAnswer

func (ss SpellSuggestions) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicArticle

func (ss SpellSuggestions) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicCreativeWork

func (ss SpellSuggestions) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicIdentifiable

func (ss SpellSuggestions) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicIntangible

func (ss SpellSuggestions) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicMediaObject

func (ss SpellSuggestions) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicResponse

func (ss SpellSuggestions) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicResponseBase

func (ss SpellSuggestions) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicSearchResultsAnswer

func (ss SpellSuggestions) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicThing

func (ss SpellSuggestions) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsComputation

func (ss SpellSuggestions) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsCreativeWork

func (ss SpellSuggestions) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsErrorResponse

func (ss SpellSuggestions) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsIdentifiable

func (ss SpellSuggestions) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsImageObject

func (ss SpellSuggestions) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsImages

func (ss SpellSuggestions) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsIntangible

func (ss SpellSuggestions) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsMediaObject

func (ss SpellSuggestions) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsNews

func (ss SpellSuggestions) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsNewsArticle

func (ss SpellSuggestions) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsPlaces

func (ss SpellSuggestions) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsRelatedSearchesRelatedSearchAnswer

func (ss SpellSuggestions) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsResponse

func (ss SpellSuggestions) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsResponseBase

func (ss SpellSuggestions) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsSearchResponse

func (ss SpellSuggestions) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsSearchResultsAnswer

func (ss SpellSuggestions) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsSpellSuggestions

func (ss SpellSuggestions) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsStructuredValue

func (ss SpellSuggestions) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsThing

func (ss SpellSuggestions) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsTimeZone

func (ss SpellSuggestions) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsVideoObject

func (ss SpellSuggestions) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsVideos

func (ss SpellSuggestions) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsWebPage

func (ss SpellSuggestions) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsWebWebAnswer

func (ss SpellSuggestions) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) MarshalJSON

func (ss SpellSuggestions) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SpellSuggestions.

type StructuredValue

type StructuredValue struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
}

StructuredValue ...

func (StructuredValue) AsAnswer

func (sv StructuredValue) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsArticle

func (sv StructuredValue) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicAnswer

func (sv StructuredValue) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicArticle

func (sv StructuredValue) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicCreativeWork

func (sv StructuredValue) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIdentifiable

func (sv StructuredValue) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIntangible

func (sv StructuredValue) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicMediaObject

func (sv StructuredValue) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponse

func (sv StructuredValue) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponseBase

func (sv StructuredValue) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicSearchResultsAnswer

func (sv StructuredValue) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicThing

func (sv StructuredValue) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsComputation

func (sv StructuredValue) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsCreativeWork

func (sv StructuredValue) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsErrorResponse

func (sv StructuredValue) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIdentifiable

func (sv StructuredValue) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageObject

func (sv StructuredValue) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImages

func (sv StructuredValue) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIntangible

func (sv StructuredValue) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsMediaObject

func (sv StructuredValue) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsNews

func (sv StructuredValue) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsNewsArticle

func (sv StructuredValue) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsPlaces

func (sv StructuredValue) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsRelatedSearchesRelatedSearchAnswer

func (sv StructuredValue) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponse

func (sv StructuredValue) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponseBase

func (sv StructuredValue) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResponse

func (sv StructuredValue) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResultsAnswer

func (sv StructuredValue) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSpellSuggestions

func (sv StructuredValue) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsStructuredValue

func (sv StructuredValue) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsThing

func (sv StructuredValue) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsTimeZone

func (sv StructuredValue) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsVideoObject

func (sv StructuredValue) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsVideos

func (sv StructuredValue) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsWebPage

func (sv StructuredValue) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsWebWebAnswer

func (sv StructuredValue) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) MarshalJSON

func (sv StructuredValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StructuredValue.

type TextFormat

type TextFormat string

TextFormat enumerates the values for text format.

const (
	// HTML ...
	HTML TextFormat = "Html"
	// Raw ...
	Raw TextFormat = "Raw"
)

type Thing

type Thing struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL   *string      `json:"url,omitempty"`
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
}

Thing

func (Thing) AsAnswer

func (t Thing) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsArticle

func (t Thing) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicAnswer

func (t Thing) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicArticle

func (t Thing) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicCreativeWork

func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicIdentifiable

func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicIntangible

func (t Thing) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicMediaObject

func (t Thing) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Thing.

func (Thing)