websearch

package
v22.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

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

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

Variables

This section is empty.

Functions

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.

Types

type Answer

type Answer struct {
	FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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"
)

func PossibleAnswerTypeValues

func PossibleAnswerTypeValues() []AnswerType

PossibleAnswerTypeValues returns an array of possible values for the AnswerType const type.

type Article

type Article struct {
	// WordCount - The number of words in the text of the Article.
	WordCount *int32 `json:"wordCount,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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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"
)

func PossibleErrorCodeValues

func PossibleErrorCodeValues() []ErrorCode

PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.

type ErrorResponse

type ErrorResponse struct {
	// Errors - A list of errors that describe the reasons why the request failed.
	Errors *[]Error `json:"errors,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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"
)

func PossibleErrorSubCodeValues

func PossibleErrorSubCodeValues() []ErrorSubCode

PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.

type Freshness

type Freshness string

Freshness enumerates the values for freshness.

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

func PossibleFreshnessValues

func PossibleFreshnessValues() []Freshness

PossibleFreshnessValues returns an array of possible values for the Freshness const type.

type Identifiable

type Identifiable struct {
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// Thumbnail - The URL to a thumbnail of the image
	Thumbnail *ImageObject `json:"thumbnail,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"`
	// 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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	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"`
	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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	// 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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// WordCount - The number of words in the text of the Article.
	WordCount *int32 `json:"wordCount,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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// Value - A list of local entities, such as restaurants or hotels.
	Value        *[]BasicThing `json:"value,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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// Value - A list of related queries that were made by others.
	Value        *[]Query      `json:"value,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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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"
)

func PossibleSafeSearchValues

func PossibleSafeSearchValues() []SafeSearch

PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.

type SearchResponse

type SearchResponse struct {
	autorest.Response `json:"-"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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 {
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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"
)

func PossibleTextFormatValues

func PossibleTextFormatValues() []TextFormat

PossibleTextFormatValues returns an array of possible values for the TextFormat const type.

type Thing

type Thing struct {
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

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) AsBasicResponse

func (t Thing) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicResponseBase

func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicSearchResultsAnswer

func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicThing

func (t Thing) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Thing.

func (Thing) AsComputation

func (t Thing) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Thing.

func (Thing) AsCreativeWork

func (t Thing) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Thing.

func (Thing) AsErrorResponse

func (t Thing) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsIdentifiable

func (t Thing) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Thing.

func (Thing) AsImageObject

func (t Thing) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Thing.

func (Thing) AsImages

func (t Thing) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Thing.

func (Thing) AsIntangible

func (t Thing) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Thing.

func (Thing) AsMediaObject

func (t Thing) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Thing.

func (Thing) AsNews

func (t Thing) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Thing.

func (Thing) AsNewsArticle

func (t Thing) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Thing.

func (Thing) AsPlaces

func (t Thing) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Thing.

func (Thing) AsRelatedSearchesRelatedSearchAnswer

func (t Thing) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsResponse

func (t Thing) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsResponseBase

func (t Thing) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Thing.

func (Thing) AsSearchResponse

func (t Thing) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsSearchResultsAnswer

func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsSpellSuggestions

func (t Thing) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Thing.

func (Thing) AsStructuredValue

func (t Thing) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Thing.

func (Thing) AsThing

func (t Thing) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Thing.

func (Thing) AsTimeZone

func (t Thing) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Thing.

func (Thing) AsVideoObject

func (t Thing) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Thing.

func (Thing) AsVideos

func (t Thing) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Thing.

func (Thing) AsWebPage

func (t Thing) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Thing.

func (Thing) AsWebWebAnswer

func (t Thing) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Thing.

func (Thing) MarshalJSON

func (t Thing) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Thing.

type TimeZone

type TimeZone struct {
	// PrimaryCityTime - The data and time, in UTC, of the geographic location specified in the query. If the query specified a specific geographic location (for example, a city), this object contains the name of the geographic location and the current date and time of the location, in UTC. If the query specified a general geographic location, such as a state or country, this object contains the date and time of the primary city or state found in the specified state or country. If the location contains additional time zones, the otherCityTimes field contains the data and time of cities or states located in the other time zones.
	PrimaryCityTime *TimeZoneTimeZoneInformation `json:"primaryCityTime,omitempty"`
	// OtherCityTimes - A list of dates and times of nearby time zones.
	OtherCityTimes *[]TimeZoneTimeZoneInformation `json:"otherCityTimes,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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

TimeZone defines the data and time of one or more geographic locations.

func (TimeZone) AsAnswer

func (tz TimeZone) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsArticle

func (tz TimeZone) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicAnswer

func (tz TimeZone) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicArticle

func (tz TimeZone) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicCreativeWork

func (tz TimeZone) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicIdentifiable

func (tz TimeZone) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicIntangible

func (tz TimeZone) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicMediaObject

func (tz TimeZone) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicResponse

func (tz TimeZone) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicResponseBase

func (tz TimeZone) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicSearchResultsAnswer

func (tz TimeZone) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsBasicThing

func (tz TimeZone) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsComputation

func (tz TimeZone) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsCreativeWork

func (tz TimeZone) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsErrorResponse

func (tz TimeZone) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsIdentifiable

func (tz TimeZone) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsImageObject

func (tz TimeZone) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsImages

func (tz TimeZone) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsIntangible

func (tz TimeZone) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsMediaObject

func (tz TimeZone) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsNews

func (tz TimeZone) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsNewsArticle

func (tz TimeZone) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsPlaces

func (tz TimeZone) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsRelatedSearchesRelatedSearchAnswer

func (tz TimeZone) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsResponse

func (tz TimeZone) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsResponseBase

func (tz TimeZone) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsSearchResponse

func (tz TimeZone) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsSearchResultsAnswer

func (tz TimeZone) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsSpellSuggestions

func (tz TimeZone) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsStructuredValue

func (tz TimeZone) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsThing

func (tz TimeZone) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsTimeZone

func (tz TimeZone) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsVideoObject

func (tz TimeZone) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsVideos

func (tz TimeZone) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsWebPage

func (tz TimeZone) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for TimeZone.

func (TimeZone) AsWebWebAnswer

func (tz TimeZone) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for TimeZone.

func (TimeZone) MarshalJSON

func (tz TimeZone) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TimeZone.

type TimeZoneTimeZoneInformation

type TimeZoneTimeZoneInformation struct {
	// Location - The name of the geographical location.For example, County; City; City, State; City, State, Country; or Time Zone.
	Location *string `json:"location,omitempty"`
	// Time - The data and time specified in the form, YYYY-MM-DDThh;mm:ss.ssssssZ.
	Time *string `json:"time,omitempty"`
	// UtcOffset - The offset from UTC. For example, UTC-7.
	UtcOffset *string `json:"utcOffset,omitempty"`
}

TimeZoneTimeZoneInformation defines a date and time for a geographical location.

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeWebWebGrouping ...
	TypeWebWebGrouping Type = "Web/WebGrouping"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicResponseBase

type TypeBasicResponseBase string

TypeBasicResponseBase enumerates the values for type basic response base.

const (
	// TypeAnswer ...
	TypeAnswer TypeBasicResponseBase = "Answer"
	// TypeArticle ...
	TypeArticle TypeBasicResponseBase = "Article"
	// TypeComputation ...
	TypeComputation TypeBasicResponseBase = "Computation"
	// TypeCreativeWork ...
	TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
	// TypeErrorResponse ...
	TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
	// TypeIdentifiable ...
	TypeIdentifiable TypeBasicResponseBase = "Identifiable"
	// TypeImageObject ...
	TypeImageObject TypeBasicResponseBase = "ImageObject"
	// TypeImages ...
	TypeImages TypeBasicResponseBase = "Images"
	// TypeIntangible ...
	TypeIntangible TypeBasicResponseBase = "Intangible"
	// TypeMediaObject ...
	TypeMediaObject TypeBasicResponseBase = "MediaObject"
	// TypeNews ...
	TypeNews TypeBasicResponseBase = "News"
	// TypeNewsArticle ...
	TypeNewsArticle TypeBasicResponseBase = "NewsArticle"
	// TypePlaces ...
	TypePlaces TypeBasicResponseBase = "Places"
	// TypeRelatedSearchesRelatedSearchAnswer ...
	TypeRelatedSearchesRelatedSearchAnswer TypeBasicResponseBase = "RelatedSearches/RelatedSearchAnswer"
	// TypeResponse ...
	TypeResponse TypeBasicResponseBase = "Response"
	// TypeResponseBase ...
	TypeResponseBase TypeBasicResponseBase = "ResponseBase"
	// TypeSearchResponse ...
	TypeSearchResponse TypeBasicResponseBase = "SearchResponse"
	// TypeSearchResultsAnswer ...
	TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
	// TypeSpellSuggestions ...
	TypeSpellSuggestions TypeBasicResponseBase = "SpellSuggestions"
	// TypeStructuredValue ...
	TypeStructuredValue TypeBasicResponseBase = "StructuredValue"
	// TypeThing ...
	TypeThing TypeBasicResponseBase = "Thing"
	// TypeTimeZone ...
	TypeTimeZone TypeBasicResponseBase = "TimeZone"
	// TypeVideoObject ...
	TypeVideoObject TypeBasicResponseBase = "VideoObject"
	// TypeVideos ...
	TypeVideos TypeBasicResponseBase = "Videos"
	// TypeWebPage ...
	TypeWebPage TypeBasicResponseBase = "WebPage"
	// TypeWebWebAnswer ...
	TypeWebWebAnswer TypeBasicResponseBase = "Web/WebAnswer"
)

func PossibleTypeBasicResponseBaseValues

func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase

PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.

type VideoObject

type VideoObject struct {
	MotionThumbnailURL *string      `json:"motionThumbnailUrl,omitempty"`
	MotionThumbnailID  *string      `json:"motionThumbnailId,omitempty"`
	EmbedHTML          *string      `json:"embedHtml,omitempty"`
	AllowHTTPSEmbed    *bool        `json:"allowHttpsEmbed,omitempty"`
	ViewCount          *int32       `json:"viewCount,omitempty"`
	Thumbnail          *ImageObject `json:"thumbnail,omitempty"`
	VideoID            *string      `json:"videoId,omitempty"`
	AllowMobileEmbed   *bool        `json:"allowMobileEmbed,omitempty"`
	IsSuperfresh       *bool        `json:"isSuperfresh,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"`
	// 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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

VideoObject defines a video object that is relevant to the query.

func (VideoObject) AsAnswer

func (vo VideoObject) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsArticle

func (vo VideoObject) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicAnswer

func (vo VideoObject) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicArticle

func (vo VideoObject) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicCreativeWork

func (vo VideoObject) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicIdentifiable

func (vo VideoObject) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicIntangible

func (vo VideoObject) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicMediaObject

func (vo VideoObject) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicResponse

func (vo VideoObject) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicResponseBase

func (vo VideoObject) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicSearchResultsAnswer

func (vo VideoObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsBasicThing

func (vo VideoObject) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsComputation

func (vo VideoObject) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsCreativeWork

func (vo VideoObject) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsErrorResponse

func (vo VideoObject) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsIdentifiable

func (vo VideoObject) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsImageObject

func (vo VideoObject) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsImages

func (vo VideoObject) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsIntangible

func (vo VideoObject) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsMediaObject

func (vo VideoObject) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsNews

func (vo VideoObject) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsNewsArticle

func (vo VideoObject) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsPlaces

func (vo VideoObject) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsRelatedSearchesRelatedSearchAnswer

func (vo VideoObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsResponse

func (vo VideoObject) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsResponseBase

func (vo VideoObject) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsSearchResponse

func (vo VideoObject) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsSearchResultsAnswer

func (vo VideoObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsSpellSuggestions

func (vo VideoObject) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsStructuredValue

func (vo VideoObject) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsThing

func (vo VideoObject) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsTimeZone

func (vo VideoObject) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsVideoObject

func (vo VideoObject) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsVideos

func (vo VideoObject) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsWebPage

func (vo VideoObject) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for VideoObject.

func (VideoObject) AsWebWebAnswer

func (vo VideoObject) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for VideoObject.

func (VideoObject) MarshalJSON

func (vo VideoObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VideoObject.

func (*VideoObject) UnmarshalJSON

func (vo *VideoObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VideoObject struct.

type Videos

type Videos struct {
	// Value - A list of video objects that are relevant to the query.
	Value           *[]VideoObject `json:"value,omitempty"`
	NextOffset      *int32         `json:"nextOffset,omitempty"`
	QueryExpansions *[]Query       `json:"queryExpansions,omitempty"`
	RelatedSearches *[]Query       `json:"relatedSearches,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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

Videos defines a video answer.

func (Videos) AsAnswer

func (vVar Videos) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Videos.

func (Videos) AsArticle

func (vVar Videos) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicAnswer

func (vVar Videos) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicArticle

func (vVar Videos) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicCreativeWork

func (vVar Videos) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicIdentifiable

func (vVar Videos) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicIntangible

func (vVar Videos) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicMediaObject

func (vVar Videos) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicResponse

func (vVar Videos) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicResponseBase

func (vVar Videos) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicSearchResultsAnswer

func (vVar Videos) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Videos.

func (Videos) AsBasicThing

func (vVar Videos) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Videos.

func (Videos) AsComputation

func (vVar Videos) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for Videos.

func (Videos) AsCreativeWork

func (vVar Videos) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Videos.

func (Videos) AsErrorResponse

func (vVar Videos) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Videos.

func (Videos) AsIdentifiable

func (vVar Videos) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Videos.

func (Videos) AsImageObject

func (vVar Videos) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Videos.

func (Videos) AsImages

func (vVar Videos) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Videos.

func (Videos) AsIntangible

func (vVar Videos) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Videos.

func (Videos) AsMediaObject

func (vVar Videos) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Videos.

func (Videos) AsNews

func (vVar Videos) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Videos.

func (Videos) AsNewsArticle

func (vVar Videos) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Videos.

func (Videos) AsPlaces

func (vVar Videos) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for Videos.

func (Videos) AsRelatedSearchesRelatedSearchAnswer

func (vVar Videos) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Videos.

func (Videos) AsResponse

func (vVar Videos) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Videos.

func (Videos) AsResponseBase

func (vVar Videos) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Videos.

func (Videos) AsSearchResponse

func (vVar Videos) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for Videos.

func (Videos) AsSearchResultsAnswer

func (vVar Videos) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Videos.

func (Videos) AsSpellSuggestions

func (vVar Videos) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for Videos.

func (Videos) AsStructuredValue

func (vVar Videos) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Videos.

func (Videos) AsThing

func (vVar Videos) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Videos.

func (Videos) AsTimeZone

func (vVar Videos) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for Videos.

func (Videos) AsVideoObject

func (vVar Videos) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for Videos.

func (Videos) AsVideos

func (vVar Videos) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Videos.

func (Videos) AsWebPage

func (vVar Videos) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Videos.

func (Videos) AsWebWebAnswer

func (vVar Videos) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for Videos.

func (Videos) MarshalJSON

func (vVar Videos) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Videos.

type WebClient

type WebClient struct {
	BaseClient
}

WebClient is the 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.

func NewWebClient

func NewWebClient() WebClient

NewWebClient creates an instance of the WebClient client.

func NewWebClientWithBaseURI

func NewWebClientWithBaseURI(baseURI string) WebClient

NewWebClientWithBaseURI creates an instance of the WebClient client.

func (WebClient) Search

func (client WebClient) Search(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, answerCount *int32, countryCode string, count *int32, freshness Freshness, market string, offset *int32, promote []AnswerType, responseFilter []AnswerType, safeSearch SafeSearch, setLang string, textDecorations *bool, textFormat TextFormat) (result SearchResponse, err error)

Search sends the search request. Parameters: query - the user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator. acceptLanguage - a comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the setLang query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the cc query parameter. Bing will use the first supported language it finds from the list, and combine that language with the cc parameter value to determine the market to return results for. If the list does not include a supported language, Bing will find the closest language and market that supports the request, and may use an aggregated or default market for the results instead of a specified one. You should use this header and the cc query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. A user interface string is a string that's used as a label in a user interface. There are very few user interface strings in the JSON response objects. Any links in the response objects to Bing.com properties will apply the specified language. pragma - by default, Bing returns cached content, if available. To prevent Bing from returning cached content, set the Pragma header to no-cache (for example, Pragma: no-cache). userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are strongly encouraged to always specify this header. The user-agent should be the same string that any commonly used browser would send. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). clientID - bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the device must have a unique, Bing generated client ID. If you do not include this header in the request, Bing generates an ID and returns it in the X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the first time the user uses your app on that device. Use the client ID for each Bing API request that your app makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses your app on that device, get the client ID that you persisted. Bing responses may or may not include this header. If the response includes this header, capture the client ID and use it for all subsequent Bing requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in the request. clientIP - the IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing uses the location information to determine safe search behavior. Although optional, you are encouraged to always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the device's actual location, which may result in Bing serving erroneous results. location - a semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses the location information to determine safe search behavior and to return relevant local content. Specify the key/value pair as <key>:<value>. The following are the keys that you use to specify the user's location. lat (required): The latitude of the client's location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. Negative values indicate southern latitudes and positive values indicate northern latitudes. long (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, that the client device is traveling. alt (optional): The altitude of the client device, in meters. are (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key only if you specify the alt key. Although many of the keys are optional, the more information that you provide, the more accurate the location results are. Although optional, you are encouraged to always specify the user's geographical location. Providing the location is especially important if the client's IP address does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. answerCount - the number of answers that you want the response to include. The answers that Bing returns are based on ranking. For example, if Bing returns webpages, images, videos, and relatedSearches for a request and you set this parameter to two (2), the response includes webpages and images.If you included the responseFilter query parameter in the same request and set it to webpages and news, the response would include only webpages. countryCode - a 2-character country code of the country where the results come from. This API supports only the United States market. If you specify this query parameter, it must be set to us. If you set this parameter, you must also specify the Accept-Language header. Bing uses the first supported language it finds from the languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the mkt query parameter are mutually exclusive—do not specify both. count - the number of search results to return in the response. The default is 10 and the maximum value is 50. The actual number delivered may be less than requested.Use this parameter along with the offset parameter to page results.For example, if your user interface displays 10 search results per page, set count to 10 and offset to 0 to get the first page of results. For each subsequent page, increment offset by 10 (for example, 0, 10, 20). It is possible for multiple pages to include some overlap in results. freshness - filter search results by the following age values: Day—Return webpages that Bing discovered within the last 24 hours. Week—Return webpages that Bing discovered within the last 7 days. Month—Return webpages that discovered within the last 30 days. This filter applies only to webpage results and not to the other results such as news and images. market - the market where the results come from. Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you specify a market that is not listed in Market Codes, Bing uses a best fit market code based on an internal mapping that is subject to change. This parameter and the cc query parameter are mutually exclusive—do not specify both. offset - the zero-based offset that indicates the number of search results to skip before returning results. The default is 0. The offset should be less than (totalEstimatedMatches - count). Use this parameter along with the count parameter to page results. For example, if your user interface displays 10 search results per page, set count to 10 and offset to 0 to get the first page of results. For each subsequent page, increment offset by 10 (for example, 0, 10, 20). it is possible for multiple pages to include some overlap in results. promote - a comma-delimited list of answers that you want the response to include regardless of their ranking. For example, if you set answerCount) to two (2) so Bing returns the top two ranked answers, but you also want the response to include news, you'd set promote to news. If the top ranked answers are webpages, images, videos, and relatedSearches, the response includes webpages and images because news is not a ranked answer. But if you set promote to video, Bing would promote the video answer into the response and return webpages, images, and videos. The answers that you want to promote do not count against the answerCount limit. For example, if the ranked answers are news, images, and videos, and you set answerCount to 1 and promote to news, the response contains news and images. Or, if the ranked answers are videos, images, and news, the response contains videos and news. Possible values are Computation, Images, News, RelatedSearches, SpellSuggestions, TimeZone, Videos, Webpages. Use only if you specify answerCount. responseFilter - a comma-delimited list of answers to include in the response. If you do not specify this parameter, the response includes all search answers for which there's relevant data. Possible filter values are Computation, Images, News, RelatedSearches, SpellSuggestions, TimeZone, Videos, Webpages. Although you may use this filter to get a single answer, you should instead use the answer-specific endpoint in order to get richer results. For example, to receive only images, send the request to one of the Image Search API endpoints. The RelatedSearches and SpellSuggestions answers do not support a separate endpoint like the Image Search API does (only the Web Search API returns them). To include answers that would otherwise be excluded because of ranking, see the promote query parameter. safeSearch - a filter used to filter adult content. Off: Return webpages with adult text, images, or videos. Moderate: Return webpages with adult text, but not adult images or videos. Strict: Do not return webpages with adult text, images, or videos. The default is Moderate. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. setLang - the language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the Accept-Language header are mutually exclusive; do not specify both. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Also, any links to Bing.com properties in the response objects apply the specified language. textDecorations - a Boolean value that determines whether display strings should contain decoration markers such as hit highlighting characters. If true, the strings may include markers. The default is false. To specify whether to use Unicode characters or HTML tags as the markers, see the textFormat query parameter. textFormat - the type of markers to use for text decorations (see the textDecorations query parameter). Possible values are Raw—Use Unicode characters to mark content that needs special formatting. The Unicode characters are in the range E000 through E019. For example, Bing uses E000 and E001 to mark the beginning and end of query terms for hit highlighting. HTML—Use HTML tags to mark content that needs special formatting. For example, use <b> tags to highlight query terms in display strings. The default is Raw. For display strings that contain escapable HTML characters such as <, >, and &, if textFormat is set to HTML, Bing escapes the characters as appropriate (for example, < is escaped to &lt;).

func (WebClient) SearchPreparer

func (client WebClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, answerCount *int32, countryCode string, count *int32, freshness Freshness, market string, offset *int32, promote []AnswerType, responseFilter []AnswerType, safeSearch SafeSearch, setLang string, textDecorations *bool, textFormat TextFormat) (*http.Request, error)

SearchPreparer prepares the Search request.

func (WebClient) SearchResponder

func (client WebClient) SearchResponder(resp *http.Response) (result SearchResponse, err error)

SearchResponder handles the response to the Search request. The method always closes the http.Response Body.

func (WebClient) SearchSender

func (client WebClient) SearchSender(req *http.Request) (*http.Response, error)

SearchSender sends the Search request. The method will close the http.Response Body if it receives an error.

type WebMetaTag

type WebMetaTag struct {
	// Name - The metadata.
	Name *string `json:"name,omitempty"`
	// Content - The name of the metadata.
	Content *string `json:"content,omitempty"`
}

WebMetaTag defines a webpage's metadata.

type WebPage

type WebPage struct {
	// DisplayURL - The display URL of the webpage. The URL is meant for display purposes only and is not well formed.
	DisplayURL *string `json:"displayUrl,omitempty"`
	// Snippet - A snippet of text from the webpage that describes its contents.
	Snippet *string `json:"snippet,omitempty"`
	// DeepLinks - A list of links to related content that Bing found in the website that contains this webpage. The Webpage object in this context includes only the name, url, urlPingSuffix, and snippet fields.
	DeepLinks *[]WebPage `json:"deepLinks,omitempty"`
	// DateLastCrawled - The last time that Bing crawled the webpage. The date is in the form, YYYY-MM-DDTHH:MM:SS. For example, 2015-04-13T05:23:39.
	DateLastCrawled *string `json:"dateLastCrawled,omitempty"`
	// SearchTags - A list of search tags that the webpage owner specified on the webpage. The API returns only indexed search tags. The name field of the MetaTag object contains the indexed search tag. Search tags begin with search.* (for example, search.assetId). The content field contains the tag's value.
	SearchTags         *[]WebMetaTag `json:"searchTags,omitempty"`
	PrimaryImageOfPage *ImageObject  `json:"primaryImageOfPage,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"`
	// 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"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

WebPage defines a webpage that is relevant to the query.

func (WebPage) AsAnswer

func (wp WebPage) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsArticle

func (wp WebPage) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicAnswer

func (wp WebPage) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicArticle

func (wp WebPage) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicCreativeWork

func (wp WebPage) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicIdentifiable

func (wp WebPage) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicIntangible

func (wp WebPage) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicMediaObject

func (wp WebPage) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicResponse

func (wp WebPage) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicResponseBase

func (wp WebPage) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicSearchResultsAnswer

func (wp WebPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicThing

func (wp WebPage) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for WebPage.

func (WebPage) AsComputation

func (wp WebPage) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for WebPage.

func (WebPage) AsCreativeWork

func (wp WebPage) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for WebPage.

func (WebPage) AsErrorResponse

func (wp WebPage) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsIdentifiable

func (wp WebPage) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for WebPage.

func (WebPage) AsImageObject

func (wp WebPage) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsImages

func (wp WebPage) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for WebPage.

func (WebPage) AsIntangible

func (wp WebPage) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for WebPage.

func (WebPage) AsMediaObject

func (wp WebPage) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsNews

func (wp WebPage) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for WebPage.

func (WebPage) AsNewsArticle

func (wp WebPage) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for WebPage.

func (WebPage) AsPlaces

func (wp WebPage) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for WebPage.

func (WebPage) AsRelatedSearchesRelatedSearchAnswer

func (wp WebPage) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsResponse

func (wp WebPage) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsResponseBase

func (wp WebPage) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for WebPage.

func (WebPage) AsSearchResponse

func (wp WebPage) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsSearchResultsAnswer

func (wp WebPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsSpellSuggestions

func (wp WebPage) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for WebPage.

func (WebPage) AsStructuredValue

func (wp WebPage) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for WebPage.

func (WebPage) AsThing

func (wp WebPage) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for WebPage.

func (WebPage) AsTimeZone

func (wp WebPage) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for WebPage.

func (WebPage) AsVideoObject

func (wp WebPage) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsVideos

func (wp WebPage) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for WebPage.

func (WebPage) AsWebPage

func (wp WebPage) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for WebPage.

func (WebPage) AsWebWebAnswer

func (wp WebPage) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) MarshalJSON

func (wp WebPage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebPage.

func (*WebPage) UnmarshalJSON

func (wp *WebPage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WebPage struct.

type WebWebAnswer

type WebWebAnswer struct {
	// Value - A list of webpages that are relevant to the query.
	Value *[]WebPage `json:"value,omitempty"`
	// SomeResultsRemoved - A Boolean value that indicates whether the response excluded some results from the answer. If Bing excluded some results, the value is true.
	SomeResultsRemoved *bool         `json:"someResultsRemoved,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"`
	FollowUpQueries       *[]Query `json:"followUpQueries,omitempty"`
	// WebSearchURL - The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// 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"`
}

WebWebAnswer defines a list of relevant webpage links.

func (WebWebAnswer) AsAnswer

func (wwa WebWebAnswer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsArticle

func (wwa WebWebAnswer) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicAnswer

func (wwa WebWebAnswer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicArticle

func (wwa WebWebAnswer) AsBasicArticle() (BasicArticle, bool)

AsBasicArticle is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicCreativeWork

func (wwa WebWebAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicIdentifiable

func (wwa WebWebAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicIntangible

func (wwa WebWebAnswer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicMediaObject

func (wwa WebWebAnswer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicResponse

func (wwa WebWebAnswer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicResponseBase

func (wwa WebWebAnswer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicSearchResultsAnswer

func (wwa WebWebAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsBasicThing

func (wwa WebWebAnswer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsComputation

func (wwa WebWebAnswer) AsComputation() (*Computation, bool)

AsComputation is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsCreativeWork

func (wwa WebWebAnswer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsErrorResponse

func (wwa WebWebAnswer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsIdentifiable

func (wwa WebWebAnswer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsImageObject

func (wwa WebWebAnswer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsImages

func (wwa WebWebAnswer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsIntangible

func (wwa WebWebAnswer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsMediaObject

func (wwa WebWebAnswer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsNews

func (wwa WebWebAnswer) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsNewsArticle

func (wwa WebWebAnswer) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsPlaces

func (wwa WebWebAnswer) AsPlaces() (*Places, bool)

AsPlaces is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsRelatedSearchesRelatedSearchAnswer

func (wwa WebWebAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsResponse

func (wwa WebWebAnswer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsResponseBase

func (wwa WebWebAnswer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsSearchResponse

func (wwa WebWebAnswer) AsSearchResponse() (*SearchResponse, bool)

AsSearchResponse is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsSearchResultsAnswer

func (wwa WebWebAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsSpellSuggestions

func (wwa WebWebAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)

AsSpellSuggestions is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsStructuredValue

func (wwa WebWebAnswer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsThing

func (wwa WebWebAnswer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsTimeZone

func (wwa WebWebAnswer) AsTimeZone() (*TimeZone, bool)

AsTimeZone is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsVideoObject

func (wwa WebWebAnswer) AsVideoObject() (*VideoObject, bool)

AsVideoObject is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsVideos

func (wwa WebWebAnswer) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsWebPage

func (wwa WebWebAnswer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) AsWebWebAnswer

func (wwa WebWebAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for WebWebAnswer.

func (WebWebAnswer) MarshalJSON

func (wwa WebWebAnswer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebWebAnswer.

type WebWebGrouping

type WebWebGrouping struct {
	WebPages *[]WebPage `json:"webPages,omitempty"`
	// Type - Possible values include: 'TypeWebWebGrouping'
	Type Type `json:"_type,omitempty"`
}

WebWebGrouping ...

func (WebWebGrouping) AsBasicWebWebGrouping

func (wwg WebWebGrouping) AsBasicWebWebGrouping() (BasicWebWebGrouping, bool)

AsBasicWebWebGrouping is the BasicWebWebGrouping implementation for WebWebGrouping.

func (WebWebGrouping) AsWebWebGrouping

func (wwg WebWebGrouping) AsWebWebGrouping() (*WebWebGrouping, bool)

AsWebWebGrouping is the BasicWebWebGrouping implementation for WebWebGrouping.

func (WebWebGrouping) MarshalJSON

func (wwg WebWebGrouping) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebWebGrouping.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL