#[non_exhaustive]pub struct PolicyOptions {
pub hash_algorithm_registry: HashAlgorithmRegistry,
}Expand description
Policy decisions that affect rule semantics. Conservative defaults match current behavior bit-for-bit; opting into Strict or Lenient changes the outcome of specific Policy-blocked rules.
Each knob is wired end-to-end to at least one emit site. Variants that the validator does not yet differentiate on were removed rather than left as speculative API; reintroduce one at a time when a concrete need arises.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hash_algorithm_registry: HashAlgorithmRegistryWhat is accepted as a value for sbol:hashAlgorithm (sbol3-12806).
Trait Implementations§
Source§impl Clone for PolicyOptions
impl Clone for PolicyOptions
Source§fn clone(&self) -> PolicyOptions
fn clone(&self) -> PolicyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyOptions
impl Debug for PolicyOptions
Source§impl Default for PolicyOptions
impl Default for PolicyOptions
Source§fn default() -> PolicyOptions
fn default() -> PolicyOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for PolicyOptions
impl PartialEq for PolicyOptions
Source§fn eq(&self, other: &PolicyOptions) -> bool
fn eq(&self, other: &PolicyOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PolicyOptions
impl Eq for PolicyOptions
impl StructuralPartialEq for PolicyOptions
Auto Trait Implementations§
impl Freeze for PolicyOptions
impl RefUnwindSafe for PolicyOptions
impl Send for PolicyOptions
impl Sync for PolicyOptions
impl Unpin for PolicyOptions
impl UnsafeUnpin for PolicyOptions
impl UnwindSafe for PolicyOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more