From 8756dd05307aae6edf78d6fc946d42c602808f64 Mon Sep 17 00:00:00 2001 From: Matthew Edwards Date: Thu, 3 Jun 2021 08:40:55 -0700 Subject: ValueKind is now public to users of the crate --- src/lib.rs | 1 + src/value.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 0725189..60d7012 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,3 +71,4 @@ pub use crate::error::ConfigError; pub use crate::file::{File, FileFormat, FileSourceFile, FileSourceString}; pub use crate::source::Source; pub use crate::value::Value; +pub use crate::value::ValueKind; diff --git a/src/value.rs b/src/value.rs index 6a2af76..8db5fcc 100644 --- a/src/value.rs +++ b/src/value.rs @@ -7,6 +7,10 @@ use serde::de::{Deserialize, Deserializer, Visitor}; use crate::error::*; /// Underlying kind of the configuration value. +/// +/// Standard operations on a `Value` by users of this crate do not require +/// knowledge of `ValueKind`. Introspection of underlying kind is only required +/// when the configuration values are unstructured or do not have known types. #[derive(Debug, Clone, PartialEq)] pub enum ValueKind { Nil, -- cgit v1.2.3