From b4a5b4d71c44800f17db6593ff18f347d8ab4da6 Mon Sep 17 00:00:00 2001 From: JL710 <76447362+JL710@users.noreply.github.com> Date: Sat, 21 Sep 2024 23:00:31 +0200 Subject: [PATCH] add documentation for private build method --- derive_builder/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/derive_builder/src/lib.rs b/derive_builder/src/lib.rs index e9937f5..35699b0 100644 --- a/derive_builder/src/lib.rs +++ b/derive_builder/src/lib.rs @@ -438,6 +438,8 @@ //! your own version. Suppression is done using `#[builder(build_fn(skip))]` at the struct level, //! and renaming is done with `#[builder(build_fn(name = "YOUR_NAME"))]`. //! +//! Additionally if you want to make the build method private you can apply `#[builder(build_fn(private))]`. +//! //! ## Pre-Build Validation //! //! If you're using the provided `build` method, you can declare