Struct machinebox::suggestionbox::Feature [] [src]

pub struct Feature {
    pub key: String,
    pub value: String,
    pub feature_type: FeatureType,
}

A feature is used to describe an input or a choice. For example, age:28 or location:"London"

Fields

The feature's key

The value of the feature

The type of this feature

Methods

impl Feature
[src]

[src]

Shortcut for producing a new text feature

[src]

Shortcut for production a numerical feature

[src]

Shortcut for producing a keyword feature

[src]

Shortcut for producing a keyword list feature

[src]

Shortcut for producing an image URL feature

[src]

Shortcut for producing a base64-encoded image feature

Trait Implementations

impl Debug for Feature
[src]

[src]

Formats the value using the given formatter.

impl Clone for Feature
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more