pub struct CategoryConfig {
pub order: Vec<String>,
pub default: String,
}Expand description
[categories]: the global vocabulary and the safe default.
Omitted from disk when untouched, so a legacy tix.toml round-trips
byte-identically and gains no new keys (NFR-003, C-007).
Fields§
§order: Vec<String>The vocabulary, in the project’s preferred order for presentation.
Defaults to CATEGORY_KEYS. A configured list is still validated
against that vocabulary: a board maps columns into the global
vocabulary, it does not define its own (C-002), so adding a key here is
an unknown_category error rather than a new category.
default: StringThe category an unmapped column resolves to. Must be in order, and must
not be COMPLETE_CATEGORY.
Implementations§
Trait Implementations§
Source§impl Clone for CategoryConfig
impl Clone for CategoryConfig
Source§impl Debug for CategoryConfig
impl Debug for CategoryConfig
Source§impl Default for CategoryConfig
impl Default for CategoryConfig
Source§impl<'de> Deserialize<'de> for CategoryConfigwhere
CategoryConfig: Default,
impl<'de> Deserialize<'de> for CategoryConfigwhere
CategoryConfig: Default,
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
impl Eq for CategoryConfig
Source§impl PartialEq for CategoryConfig
impl PartialEq for CategoryConfig
Source§impl Serialize for CategoryConfig
impl Serialize for CategoryConfig
impl StructuralPartialEq for CategoryConfig
Auto Trait Implementations§
impl Freeze for CategoryConfig
impl RefUnwindSafe for CategoryConfig
impl Send for CategoryConfig
impl Sync for CategoryConfig
impl Unpin for CategoryConfig
impl UnsafeUnpin for CategoryConfig
impl UnwindSafe for CategoryConfig
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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