There was an error while loading. Please reload this page.
1 parent fb073ad commit 46dee7eCopy full SHA for 46dee7e
2 files changed
src/policy/builtin.rs
@@ -1,3 +1,9 @@
1
+//! Built-in policies for Sigsum.
2
+//!
3
+//! This module contains all the included built-in policies. These can be accessed
4
+//! and used directly as public statics, or looked up at runtime by name via
5
+//! [`Policy::builtin`].
6
+
7
use std::ops::Deref;
8
use std::sync::LazyLock;
9
src/policy/mod.rs
@@ -60,6 +60,8 @@ impl<'a> Iterator for Logs<'a> {
60
61
impl Policy {
62
/// Returns a built-in policy by name, if one exists.
63
+ ///
64
+ /// See [`builtin`] for public static definitions of these policies.
65
pub fn builtin(name: &str) -> Option<&'static Self> {
66
builtin::builtin(name)
67
}
0 commit comments