pub struct OverrideEntry {
pub gate: Option<Gate>,
pub rotate_every_days: Option<u32>,
pub description: Option<String>,
pub approve_on_use: Option<ApproveOnUse>,
}Expand description
Behavioural override applied to a path whose canonical metadata lives in the global index.
Per ADR-020 §4, only gate, rotate_every_days, and
description may be overridden — everything else (regex, retrieval
URL, rotation method, …) is read from the global index only. The
deny_unknown_fields attribute enforces this: writing
retrieval_url here is a parse error rather than a silently-ignored
no-op.
Fields§
§gate: Option<Gate>Tightens the default gate from the global index for this project.
rotate_every_days: Option<u32>Project-specific rotation cadence in days. Tightens whatever the global index recommends.
description: Option<String>Project-local note that appears alongside the global
description in secrets describe and the inventory view
(e.g. “in this repo this is the staging deploy token”).
approve_on_use: Option<ApproveOnUse>Approve-on-use policy override (P25). Lets a project
tighten (or relax) the global index’s approve_on_use
without rewriting the index entry. See
crate::index::ApproveOnUse.
Implementations§
Trait Implementations§
Source§impl Clone for OverrideEntry
impl Clone for OverrideEntry
Source§fn clone(&self) -> OverrideEntry
fn clone(&self) -> OverrideEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OverrideEntry
impl Debug for OverrideEntry
Source§impl Default for OverrideEntry
impl Default for OverrideEntry
Source§fn default() -> OverrideEntry
fn default() -> OverrideEntry
Source§impl<'de> Deserialize<'de> for OverrideEntry
impl<'de> Deserialize<'de> for OverrideEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for OverrideEntry
Source§impl PartialEq for OverrideEntry
impl PartialEq for OverrideEntry
Source§fn eq(&self, other: &OverrideEntry) -> bool
fn eq(&self, other: &OverrideEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for OverrideEntry
impl Serialize for OverrideEntry
impl StructuralPartialEq for OverrideEntry
Auto Trait Implementations§
impl Freeze for OverrideEntry
impl RefUnwindSafe for OverrideEntry
impl Send for OverrideEntry
impl Sync for OverrideEntry
impl Unpin for OverrideEntry
impl UnsafeUnpin for OverrideEntry
impl UnwindSafe for OverrideEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.