chore: set public SchemaProps values

This commit is contained in:
qdequele 2019-09-19 11:51:10 +02:00
parent 62e981c6b8
commit 120d209e66
No known key found for this signature in database
GPG Key ID: B3F0A000EBF11745

View File

@ -1,6 +1,4 @@
use std::collections::{HashMap, BTreeMap}; use std::collections::{HashMap, BTreeMap};
use std::io::{Read, Write};
use std::error::Error;
use std::{fmt, u16}; use std::{fmt, u16};
use std::ops::BitOr; use std::ops::BitOr;
use std::sync::Arc; use std::sync::Arc;
@ -15,13 +13,13 @@ pub const RANKED: SchemaProps = SchemaProps { displayed: false, indexed: fals
#[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct SchemaProps { pub struct SchemaProps {
#[serde(default)] #[serde(default)]
displayed: bool, pub displayed: bool,
#[serde(default)] #[serde(default)]
indexed: bool, pub indexed: bool,
#[serde(default)] #[serde(default)]
ranked: bool, pub ranked: bool,
} }
impl SchemaProps { impl SchemaProps {