pub struct Entry {Show 25 fields
pub id: String,
pub group: Group,
pub word: String,
pub aliases: Vec<String>,
pub meaning: String,
pub sense: Option<String>,
pub default: bool,
pub conflicts: Vec<String>,
pub rule: Rule,
pub example_pass: Option<Fragment>,
pub example_fail: Option<Fragment>,
pub roles: Vec<String>,
pub genres: Vec<String>,
pub tier: Tier,
pub n_sources: u16,
pub source: Vec<String>,
pub tag: Tag,
pub verified: String,
pub notes_trigger: bool,
pub controls: Vec<Control>,
pub symbols: Vec<String>,
pub bpm: Option<Bpm>,
pub scale: Option<String>,
pub ask: Option<Ask>,
pub default_pick: Option<DefaultPick>,
}Expand description
One sense of a producer word and the rule a note list must meet for it.
Fields§
§id: StringStable id, <group>.<word> or <group>.<word>.<sense>.
group: GroupThe topic the entry belongs to.
word: StringThe word a producer uses.
aliases: Vec<String>Other spellings and names of the word.
meaning: StringThe plain meaning, in our own words.
sense: Option<String>The sense id within the word, for a word with several senses.
default: boolThe sense to take when the request gives no context.
conflicts: Vec<String>Ids of the other senses of the word and of entries this one cannot share a note list with.
rule: RuleThe checkable note rule.
example_pass: Option<Fragment>A fragment that meets the rule; none for Rule::None.
example_fail: Option<Fragment>A fragment that breaks the rule; none for Rule::None.
roles: Vec<String>The roles the entry applies to.
genres: Vec<String>Ids of the genre entries the entry belongs to.
tier: TierHow much the entry is needed.
n_sources: u16Independent publishers who state the claim, an upper bound.
source: Vec<String>Ids from dictionary/sources.json.
tag: TagHow the claim is known.
verified: StringThe day the claim was last read, YYYY-MM-DD.
notes_trigger: boolWhether the word alone names notes.
controls: Vec<Control>The preset controls the entry needs, per synth.
symbols: Vec<String>Chord entries: the spellings after the root.
bpm: Option<Bpm>Genre and rhythm entries: the tempo range.
scale: Option<String>Progression entries: the scale for the chord-root check.
ask: Option<Ask>Ask words: the one question and its options.
default_pick: Option<DefaultPick>Mood words: the scale to pick when the producer names none.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more