pub struct SecretLineRange {
pub start: usize,
pub end: usize,
pub reference: String,
}Expand description
One entry in a per-render secrets sidecar — a span of lines whose
content was produced by a secret(...) call, paired with the
reference that produced it.
Lines are 0-indexed and start..end is half-open. A single-line
secret occupies line start and is encoded as end == start + 1
(start == end would be an empty range and is never produced).
For Phase S1 every entry is single-line: multi-line secrets are
refused at resolution time per secrets.lex §3.4. The end field
is preserved in the schema for forward-compatibility but the
renderer never produces end > start + 1.
Persisted to disk under <baseline>.secret.json (see
secrets.lex §3.3); consumed by the dry-run preview rendering
(§7.4) to mask resolved values, and by the burgertocow mask
integration (issue arthur-debert/burgertocow#13) to skip those
lines from the reverse diff.
Fields§
§start: usizeFirst line, 0-indexed, inclusive.
end: usizeOne past the last line, 0-indexed, exclusive. start + 1 for
a single-line value.
reference: StringThe original secret(...) argument string, e.g.
"op://Personal/DB/password". Surfaces in the dry-run
[SECRET: <reference>] placeholder.
Trait Implementations§
Source§impl Clone for SecretLineRange
impl Clone for SecretLineRange
Source§fn clone(&self) -> SecretLineRange
fn clone(&self) -> SecretLineRange
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecretLineRange
impl Debug for SecretLineRange
Source§impl<'de> Deserialize<'de> for SecretLineRange
impl<'de> Deserialize<'de> for SecretLineRange
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>,
Source§impl PartialEq for SecretLineRange
impl PartialEq for SecretLineRange
Source§impl Serialize for SecretLineRange
impl Serialize for SecretLineRange
impl Eq for SecretLineRange
impl StructuralPartialEq for SecretLineRange
Auto Trait Implementations§
impl Freeze for SecretLineRange
impl RefUnwindSafe for SecretLineRange
impl Send for SecretLineRange
impl Sync for SecretLineRange
impl Unpin for SecretLineRange
impl UnsafeUnpin for SecretLineRange
impl UnwindSafe for SecretLineRange
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,
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.