azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/websearch Index | Files | Directories

package websearch

import "github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/websearch"

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

Package Files

client.go models.go version.go web.go

Constants

const (
    // DefaultEndpoint is the default value for endpoint
    DefaultEndpoint = "https://api.cognitive.microsoft.com"
)

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type Answer Uses

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

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

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Answer.

func (Answer) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Answer.

func (Answer) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Answer.

func (Answer) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Answer.

func (Answer) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Answer.

func (Answer) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Answer.

func (Answer) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Answer.

type AnswerType Uses

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 Uses

func PossibleAnswerTypeValues() []AnswerType

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

type Article Uses

type Article struct {
    // WordCount - READ-ONLY; The number of words in the text of the Article.
    WordCount *int32 `json:"wordCount,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Text - READ-ONLY
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Article.

func (Article) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Article.

func (Article) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Article.

func (Article) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Article.

func (Article) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Article.

func (Article) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Article.

func (Article) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Article.

func (Article) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Article.

func (Article) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Article.

func (Article) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Article.

func (Article) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Article.

func (Article) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Article.

func (Article) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Article.

func (Article) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Article.

func (Article) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Article.

func (Article) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Article.

func (Article) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Article.

func (Article) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Article.

func (Article) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Article.

func (Article) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Article.

func (Article) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Article.

func (Article) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Article.

func (Article) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Article.

func (Article) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Article.

func (Article) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Article.

func (Article) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Article.

func (Article) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Article.

func (Article) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Article.

func (Article) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Article.

func (Article) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Article.

func (Article) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Article.

func (Article) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Article.

func (Article) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Article.

func (Article) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Article.

func (*Article) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Article struct.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    Endpoint string
}

BaseClient is the base client for Websearch.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults Uses

func NewWithoutDefaults(endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type BasicAnswer Uses

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 Uses

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

BasicArticle ...

type BasicCreativeWork Uses

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 Uses

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 Uses

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

BasicIntangible ...

type BasicMediaObject Uses

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

BasicMediaObject ...

type BasicResponse Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

BasicWebWebGrouping ...

type Computation Uses

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 - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Computation.

func (Computation) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Computation.

func (Computation) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Computation.

func (Computation) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Computation.

func (Computation) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Computation.

func (Computation) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Computation.

func (Computation) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Computation.

func (Computation) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Computation.

func (Computation) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Computation.

func (Computation) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Computation.

func (Computation) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Computation.

func (Computation) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Computation.

func (Computation) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Computation.

func (Computation) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Computation.

func (Computation) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Computation.

func (Computation) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Computation.

func (Computation) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Computation.

func (Computation) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Computation.

func (Computation) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Computation.

func (Computation) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Computation.

func (Computation) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Computation.

func (Computation) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Computation.

func (Computation) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Computation.

type CreativeWork Uses

type CreativeWork struct {
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Text - READ-ONLY
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImages Uses

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

AsImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNews Uses

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

AsNews is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing Uses

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

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type Error Uses

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 - READ-ONLY; 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 - READ-ONLY; A description that provides additional information about the error.
    MoreDetails *string `json:"moreDetails,omitempty"`
    // Parameter - READ-ONLY; The parameter in the request that caused the error.
    Parameter *string `json:"parameter,omitempty"`
    // Value - READ-ONLY; The parameter's value in the request that was not valid.
    Value *string `json:"value,omitempty"`
}

Error defines the error that occurred.

type ErrorCode Uses

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 Uses

func PossibleErrorCodeValues() []ErrorCode

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

type ErrorResponse Uses

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

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

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImages Uses

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

AsImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNews Uses

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

AsNews is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ErrorResponse.

type ErrorSubCode Uses

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 Uses

func PossibleErrorSubCodeValues() []ErrorSubCode

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

type Freshness Uses

type Freshness string

Freshness enumerates the values for freshness.

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

func PossibleFreshnessValues Uses

func PossibleFreshnessValues() []Freshness

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

type Identifiable Uses

type Identifiable struct {
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Identifiable.

type ImageObject Uses

type ImageObject struct {
    // Thumbnail - READ-ONLY; The URL to a thumbnail of the image
    Thumbnail *ImageObject `json:"thumbnail,omitempty"`
    // ContentURL - READ-ONLY; 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 - READ-ONLY; URL of the page that hosts the media object.
    HostPageURL *string `json:"hostPageUrl,omitempty"`
    // Width - READ-ONLY; The width of the source media object, in pixels.
    Width *int32 `json:"width,omitempty"`
    // Height - READ-ONLY; The height of the source media object, in pixels.
    Height *int32 `json:"height,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Text - READ-ONLY
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImages Uses

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

AsImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNews Uses

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

AsNews is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ImageObject.

func (*ImageObject) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ImageObject struct.

type Images Uses

type Images struct {
    // NextOffset - READ-ONLY
    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 - READ-ONLY
    QueryExpansions *[]Query `json:"queryExpansions,omitempty"`
    // SimilarTerms - READ-ONLY
    SimilarTerms *[]Query `json:"similarTerms,omitempty"`
    // RelatedSearches - READ-ONLY
    RelatedSearches *[]Query `json:"relatedSearches,omitempty"`
    // QueryContext - READ-ONLY
    QueryContext *QueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; 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 - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // FollowUpQueries - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Images.

func (Images) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Images.

func (Images) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Images.

func (Images) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Images.

func (Images) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Images.

func (Images) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Images.

func (Images) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Images.

func (Images) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Images.

func (Images) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Images.

func (Images) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Images.

func (Images) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Images.

func (Images) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Images.

func (Images) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Images.

func (Images) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Images.

func (Images) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Images.

func (Images) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Images.

func (Images) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Images.

func (Images) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Images.

func (Images) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Images.

func (Images) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Images.

func (Images) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Images.

func (Images) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Images.

func (Images) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Images.

type Intangible Uses

type Intangible struct {
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Intangible.

func (Intangible) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Intangible.

func (Intangible) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Intangible.

func (Intangible) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Intangible.

func (Intangible) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Intangible.

func (Intangible) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Intangible.

func (Intangible) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Intangible.

func (Intangible) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Intangible.

func (Intangible) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Intangible.

type MediaObject Uses

type MediaObject struct {
    // ContentURL - READ-ONLY; 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 - READ-ONLY; URL of the page that hosts the media object.
    HostPageURL *string `json:"hostPageUrl,omitempty"`
    // Width - READ-ONLY; The width of the source media object, in pixels.
    Width *int32 `json:"width,omitempty"`
    // Height - READ-ONLY; The height of the source media object, in pixels.
    Height *int32 `json:"height,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Text - READ-ONLY
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImages Uses

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

AsImages is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsNews Uses

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

AsNews is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsThing Uses

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

AsThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for MediaObject.

func (*MediaObject) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for MediaObject struct.

type News Uses

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 - READ-ONLY
    Location *string `json:"location,omitempty"`
    // QueryContext - READ-ONLY
    QueryContext *QueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; 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 - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // FollowUpQueries - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for News.

func (News) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for News.

func (News) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for News.

func (News) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for News.

func (News) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for News.

func (News) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for News.

func (News) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for News.

func (News) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for News.

func (News) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for News.

func (News) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for News.

func (News) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for News.

func (News) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for News.

func (News) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for News.

func (News) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for News.

func (News) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for News.

func (News) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for News.

func (News) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for News.

func (News) AsImages Uses

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

AsImages is the BasicResponseBase implementation for News.

func (News) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for News.

func (News) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for News.

func (News) AsNews Uses

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

AsNews is the BasicResponseBase implementation for News.

func (News) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for News.

func (News) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for News.

func (News) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for News.

func (News) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for News.

func (News) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for News.

func (News) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for News.

func (News) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for News.

func (News) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for News.

func (News) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for News.

func (News) AsThing Uses

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

AsThing is the BasicResponseBase implementation for News.

func (News) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for News.

func (News) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for News.

func (News) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for News.

func (News) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for News.

func (News) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for News.

func (News) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for News.

type NewsArticle Uses

type NewsArticle struct {
    // WordCount - READ-ONLY; The number of words in the text of the Article.
    WordCount *int32 `json:"wordCount,omitempty"`
    // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
    ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
    // Provider - READ-ONLY; The source of the creative work.
    Provider *[]BasicThing `json:"provider,omitempty"`
    // Text - READ-ONLY
    Text *string `json:"text,omitempty"`
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsImages Uses

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

AsImages is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsNews Uses

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

AsNews is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsThing Uses

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

AsThing is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for NewsArticle.

func (NewsArticle) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for NewsArticle.

func (*NewsArticle) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for NewsArticle struct.

type Places Uses

type Places struct {
    // Value - A list of local entities, such as restaurants or hotels.
    Value *[]BasicThing `json:"value,omitempty"`
    // QueryContext - READ-ONLY
    QueryContext *QueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; 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 - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // FollowUpQueries - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Places.

func (Places) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Places.

func (Places) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Places.

func (Places) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Places.

func (Places) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Places.

func (Places) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Places.

func (Places) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Places.

func (Places) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Places.

func (Places) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Places.

func (Places) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Places.

func (Places) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Places.

func (Places) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Places.

func (Places) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Places.

func (Places) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Places.

func (Places) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Places.

func (Places) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Places.

func (Places) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Places.

func (Places) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Places.

func (Places) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Places.

func (Places) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Places.

func (Places) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Places.

func (Places) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Places.

func (Places) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Places.

func (Places) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Places.

func (Places) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Places.

func (Places) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Places.

func (Places) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Places.

func (Places) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Places.

func (Places) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Places.

func (Places) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Places.

func (Places) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Places.

func (Places) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Places.

func (Places) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Places.

func (*Places) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Places struct.

type Query Uses

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 - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY
    SearchLink *string `json:"searchLink,omitempty"`
    // Thumbnail - READ-ONLY
    Thumbnail *ImageObject `json:"thumbnail,omitempty"`
}

Query defines a search query.

type QueryContext Uses

type QueryContext struct {
    // OriginalQuery - The query string as specified in the request.
    OriginalQuery *string `json:"originalQuery,omitempty"`
    // AlteredQuery - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY
    IsTransactional *bool `json:"isTransactional,omitempty"`
}

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

type RankingRankingGroup Uses

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 Uses

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 - READ-ONLY; 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 - READ-ONLY; 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 - READ-ONLY
    HTMLIndex *int32 `json:"htmlIndex,omitempty"`
    // TextualIndex - READ-ONLY
    TextualIndex *int32 `json:"textualIndex,omitempty"`
    // ScreenshotIndex - READ-ONLY
    ScreenshotIndex *int32 `json:"screenshotIndex,omitempty"`
}

RankingRankingItem defines a search result item to display

func (*RankingRankingItem) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for RankingRankingItem struct.

type RankingRankingResponse Uses

type RankingRankingResponse struct {
    // Pole - READ-ONLY; 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 - READ-ONLY; The search results to display in the mainline.
    Mainline *RankingRankingGroup `json:"mainline,omitempty"`
    // Sidebar - READ-ONLY; 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 Uses

type RelatedSearchesRelatedSearchAnswer struct {
    // Value - A list of related queries that were made by others.
    Value *[]Query `json:"value,omitempty"`
    // QueryContext - READ-ONLY
    QueryContext *QueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; 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 - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // FollowUpQueries - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsImages Uses

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

AsImages is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsNews Uses

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

AsNews is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.

func (RelatedSearchesRelatedSearchAnswer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RelatedSearchesRelatedSearchAnswer.

type Response Uses

type Response struct {
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for Response.

func (Response) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for Response.

func (Response) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for Response.

func (Response) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for Response.

func (Response) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for Response.

func (Response) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for Response.

func (Response) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for Response.

func (Response) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for Response.

func (Response) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for Response.

func (Response) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for Response.

func (Response) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for Response.

func (Response) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for Response.

func (Response) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for Response.

func (Response) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for Response.

func (Response) AsImages Uses

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

AsImages is the BasicResponseBase implementation for Response.

func (Response) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for Response.

func (Response) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for Response.

func (Response) AsNews Uses

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

AsNews is the BasicResponseBase implementation for Response.

func (Response) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for Response.

func (Response) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for Response.

func (Response) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Response.

func (Response) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for Response.

func (Response) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for Response.

func (Response) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for Response.

func (Response) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for Response.

func (Response) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for Response.

func (Response) AsThing Uses

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

AsThing is the BasicResponseBase implementation for Response.

func (Response) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for Response.

func (Response) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for Response.

func (Response) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for Response.

func (Response) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for Response.

func (Response) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for Response.

func (Response) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Response.

type ResponseBase Uses

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 Uses

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

AsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImages Uses

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

AsImages is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsNews Uses

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

AsNews is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsThing Uses

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

AsThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ResponseBase.

type SafeSearch Uses

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 Uses

func PossibleSafeSearchValues() []SafeSearch

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

type SearchResponse Uses

type SearchResponse struct {
    autorest.Response `json:"-"`
    // QueryContext - READ-ONLY; 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 - READ-ONLY; A list of webpages that are relevant to the search query.
    WebPages *WebWebAnswer `json:"webPages,omitempty"`
    // Images - READ-ONLY; A list of images that are relevant to the search query.
    Images *Images `json:"images,omitempty"`
    // News - READ-ONLY; A list of news articles that are relevant to the search query.
    News *News `json:"news,omitempty"`
    // RelatedSearches - READ-ONLY; A list of related queries made by others.
    RelatedSearches *RelatedSearchesRelatedSearchAnswer `json:"relatedSearches,omitempty"`
    // SpellSuggestions - READ-ONLY; The query string that likely represents the user's intent.
    SpellSuggestions *SpellSuggestions `json:"spellSuggestions,omitempty"`
    // TimeZone - READ-ONLY; The date and time of one or more geographic locations.
    TimeZone *TimeZone `json:"timeZone,omitempty"`
    // Videos - READ-ONLY; A list of videos that are relevant to the search query.
    Videos *Videos `json:"videos,omitempty"`
    // Computation - READ-ONLY; The answer to a math expression or units conversion expression.
    Computation *Computation `json:"computation,omitempty"`
    // RankingResponse - READ-ONLY; The order that Bing suggests that you display the search results in.
    RankingResponse *RankingRankingResponse `json:"rankingResponse,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsImages Uses

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

AsImages is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsNews Uses

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

AsNews is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsThing Uses

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

AsThing is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for SearchResponse.

func (SearchResponse) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for SearchResponse.

type SearchResultsAnswer Uses

type SearchResultsAnswer struct {
    // QueryContext - READ-ONLY
    QueryContext *QueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; 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 - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // FollowUpQueries - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImages Uses

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

AsImages is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsNews Uses

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

AsNews is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsThing Uses

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

AsThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for SearchResultsAnswer.

type SpellSuggestions Uses

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 - READ-ONLY
    QueryContext *QueryContext `json:"queryContext,omitempty"`
    // TotalEstimatedMatches - READ-ONLY; 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 - READ-ONLY
    IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"`
    // FollowUpQueries - READ-ONLY
    FollowUpQueries *[]Query `json:"followUpQueries,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsImages Uses

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

AsImages is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsNews Uses

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

AsNews is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsThing Uses

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

AsThing is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) AsWebWebAnswer Uses

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

AsWebWebAnswer is the BasicResponseBase implementation for SpellSuggestions.

func (SpellSuggestions) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for SpellSuggestions.

type StructuredValue Uses

type StructuredValue struct {
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *ImageObject `json:"image,omitempty"`
    // Description - READ-ONLY; A short description of the item.
    Description *string `json:"description,omitempty"`
    // BingID - READ-ONLY; An ID that uniquely identifies this item.
    BingID *string `json:"bingId,omitempty"`
    // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
    WebSearchURL *string `json:"webSearchUrl,omitempty"`
    // ID - READ-ONLY; 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 Uses

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

AsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsArticle Uses

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

AsArticle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicAnswer Uses

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

AsBasicAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicArticle Uses

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

AsBasicArticle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicCreativeWork Uses

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

AsBasicCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIdentifiable Uses

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

AsBasicIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIntangible Uses

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

AsBasicIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicMediaObject Uses

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

AsBasicMediaObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponse Uses

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

AsBasicResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponseBase Uses

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

AsBasicResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicSearchResultsAnswer Uses

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

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicThing Uses

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

AsBasicThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsComputation Uses

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

AsComputation is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsCreativeWork Uses

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

AsCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsErrorResponse Uses

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

AsErrorResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIdentifiable Uses

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

AsIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageObject Uses

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

AsImageObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImages Uses

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

AsImages is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIntangible Uses

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

AsIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsMediaObject Uses

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

AsMediaObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsNews Uses

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

AsNews is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsNewsArticle Uses

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

AsNewsArticle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsPlaces Uses

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

AsPlaces is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsRelatedSearchesRelatedSearchAnswer Uses

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

AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponse Uses

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

AsResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponseBase Uses

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

AsResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResponse Uses

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

AsSearchResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResultsAnswer Uses

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

AsSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSpellSuggestions Uses

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

AsSpellSuggestions is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsStructuredValue Uses

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

AsStructuredValue is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsThing Uses

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

AsThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsTimeZone Uses

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

AsTimeZone is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsVideoObject Uses

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

AsVideoObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsVideos Uses

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

AsVideos is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsWebPage Uses

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

AsWebPage is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsWebWebAnswer Uses

func (sv StructuredValue) AsWebWebAnswer() (*WebWebAnswer, bool)

AsWebWebAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) MarshalJSON Uses

func (sv StructuredValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StructuredValue.

type TextFormat Uses

type TextFormat string

TextFormat enumerates the values for text format.

const (
    // HTML ...
    HTML TextFormat = "Html"
    // Raw ...
    Raw TextFormat = "Raw"
)

func PossibleTextFormatValues Uses

func PossibleTextFormatValues() []TextFormat

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

type Thing Uses

type Thing struct {
    // Name - READ-ONLY; The name of the thing represented by this object.
    Name *string `json:"name,omitempty"`
    // URL - READ-ONLY; The URL to get more information about the thing represented by this object.
    URL *string `json:"url,omitempty"`
    // Image - READ-ONLY
    Image *