From f4bd13b74aa93092b88f899143f47ac266dd8b3b Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 18 Nov 2020 23:04:46 +0000 Subject: [PATCH] moved some data info points to Tags --- src/server/data.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/server/data.rs b/src/server/data.rs index ba994f8..af90b2c 100644 --- a/src/server/data.rs +++ b/src/server/data.rs @@ -89,11 +89,13 @@ bitflags! { struct Tags: u16 { /// Default - const NONE = 0; + const NONE = 0; /// This value should be cloned on write unless specified elsewhere. - const COW = 1<<0; + const COW = 1<<0; /// This should not show up in searches - const HIDDEN = 1<<1; + const HIDDEN = 1<<1; + /// Versioning is enabled for this value + const VERSIONED = 1<<2; } } @@ -106,8 +108,6 @@ pub struct Info created: u64, modified: u64, - enable_versioning: bool, - tags: Tags, owner: Option>, //starts as the user that created (i.e. same as `created_by`), or `None` if ownership is disabled