pub enum SecretOrigin {
ProjectLocal,
Global {
overrides_applied: Vec<OverrideField>,
},
}Expand description
Where the resolved metadata for a path came from.
Variants§
ProjectLocal
The path’s metadata lives entirely in the project manifest’s
[secret."<path>"] block (rule 1 of the precedence).
Global
The path’s metadata came from the global index, optionally with behavioural overrides applied (rule 2 of the precedence).
Fields
§
overrides_applied: Vec<OverrideField>Which override fields were actually applied. Empty when
the path has no [overrides] block.
Trait Implementations§
Source§impl Clone for SecretOrigin
impl Clone for SecretOrigin
Source§fn clone(&self) -> SecretOrigin
fn clone(&self) -> SecretOrigin
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 SecretOrigin
impl Debug for SecretOrigin
impl Eq for SecretOrigin
Source§impl PartialEq for SecretOrigin
impl PartialEq for SecretOrigin
Source§fn eq(&self, other: &SecretOrigin) -> bool
fn eq(&self, other: &SecretOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecretOrigin
Auto Trait Implementations§
impl Freeze for SecretOrigin
impl RefUnwindSafe for SecretOrigin
impl Send for SecretOrigin
impl Sync for SecretOrigin
impl Unpin for SecretOrigin
impl UnsafeUnpin for SecretOrigin
impl UnwindSafe for SecretOrigin
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
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
Compare self to
key and return true if they are equal.