Skip to content

Commit 8756dd0

Browse files
committed
ValueKind is now public to users of the crate
1 parent 3e5cae6 commit 8756dd0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ pub use crate::error::ConfigError;
7171
pub use crate::file::{File, FileFormat, FileSourceFile, FileSourceString};
7272
pub use crate::source::Source;
7373
pub use crate::value::Value;
74+
pub use crate::value::ValueKind;

src/value.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ use serde::de::{Deserialize, Deserializer, Visitor};
77
use crate::error::*;
88

99
/// Underlying kind of the configuration value.
10+
///
11+
/// Standard operations on a `Value` by users of this crate do not require
12+
/// knowledge of `ValueKind`. Introspection of underlying kind is only required
13+
/// when the configuration values are unstructured or do not have known types.
1014
#[derive(Debug, Clone, PartialEq)]
1115
pub enum ValueKind {
1216
Nil,

0 commit comments

Comments
 (0)