From 120d209e6607044ac1e369cb1bbf6799c7d4d5ab Mon Sep 17 00:00:00 2001 From: qdequele Date: Thu, 19 Sep 2019 11:51:10 +0200 Subject: [PATCH] chore: set public SchemaProps values --- meilidb-schema/src/lib.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meilidb-schema/src/lib.rs b/meilidb-schema/src/lib.rs index 4655e2f07..5109b33e1 100644 --- a/meilidb-schema/src/lib.rs +++ b/meilidb-schema/src/lib.rs @@ -1,6 +1,4 @@ use std::collections::{HashMap, BTreeMap}; -use std::io::{Read, Write}; -use std::error::Error; use std::{fmt, u16}; use std::ops::BitOr; 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)] pub struct SchemaProps { #[serde(default)] - displayed: bool, + pub displayed: bool, #[serde(default)] - indexed: bool, + pub indexed: bool, #[serde(default)] - ranked: bool, + pub ranked: bool, } impl SchemaProps {