Struct wordshk_tools::Entry[][src]

pub struct Entry {
    pub id: usize,
    pub variants: Vec<Variant>,
    pub poses: Vec<String>,
    pub labels: Vec<String>,
    pub sims: Vec<String>,
    pub ants: Vec<String>,
    pub refs: Vec<String>,
    pub imgs: Vec<String>,
    pub defs: Vec<Def>,
}
Expand description

An entry contains some information about a word.

[id] the word’s unique identifier used by words.hk: 116878

[variants] variants of the word: 㗎:gaa3,咖:gaa3,𡃉:gaa3

[pos] grammaticall positions of the word: 動詞, 名詞, 形容詞

[labels] labels on the word: 術語, 俚語, 專名

[sims] synonyms of the word: 武士 is a synonym of 騎士

[ants] antonyms of the word: 放電 is an antonym of 充電

[refs] urls to references for this entry: http://dictionary.reference.com/browse/tart?s=t

[imgs] urls to images for this entry: https://upload.wikimedia.org/wikipedia/commons/7/79/Naihuangbao.jpg

[defs] a list of definitions for this word

Fields

id: usizevariants: Vec<Variant>poses: Vec<String>labels: Vec<String>sims: Vec<String>ants: Vec<String>refs: Vec<String>imgs: Vec<String>defs: Vec<Def>

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.