summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Souther <davidsouther+github@gmail.com>2022-11-02 13:56:40 -0700
committerDavid Souther <davidsouther+github@gmail.com>2022-11-07 09:33:26 -0800
commit1bf9b49afc4ae113671c2b4443a49835c8a9f4d3 (patch)
tree1640e8f69340ba38e0d2323f27cd5b3879bd44d7
parent03614aa6e47c9754b65c28be661de63e7d701df3 (diff)
Add documentation to `required` setter.
-rw-r--r--src/file/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file/mod.rs b/src/file/mod.rs
index 4067d76..b2915a7 100644
--- a/src/file/mod.rs
+++ b/src/file/mod.rs
@@ -107,6 +107,7 @@ where
self
}
+ /// Set required to false to make a file optional when building the config.
pub fn required(mut self, required: bool) -> Self {
self.required = required;
self