pub struct IndexEntry {
pub lang: Box<str>,
pub tags: Box<[Box<str>]>,
pub is_ext: bool,
pub id: Uuid,
pub format: DictionaryFormat,
pub lic: Downloadable,
}
Expand description
A single item within an index
Fields§
§lang: Box<str>
Language code of the dictionary
These may include the following
- A
source-x
tag to identify where the dictionary came from (required) - A
size-{compact,medium,large}
reference
These tags are used to determine when a dictionary is overwritten
is_ext: bool
True if this dictionary meant to extend a base dictionary. E.g. jargon dictionaries.
id: Uuid
UUID for this entry
format: DictionaryFormat
The dictionary source files, which differ based on format
lic: Downloadable
The license
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexEntry
impl Debug for IndexEntry
Source§impl<'de> Deserialize<'de> for IndexEntry
impl<'de> Deserialize<'de> for IndexEntry
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnwindSafe for IndexEntry
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
Mutably borrows from an owned value. Read more