pub struct Deprecated {
pub key: String,
pub value: String,
pub replacement: String,
pub mode: String,
pub origin: String,
pub pins_old_default: bool,
}Expand description
One deprecated key a layer set, and what it is read as.
Fields§
§key: StringThe key as written, such as tools.approval_policy.
value: StringIts value as written, such as on-risk.
replacement: StringThe key it is read as, such as policy.mode.
mode: StringThe value it is read as, such as read-only.
origin: StringThe layer that set it, as scv config show names layers.
pins_old_default: boolThe line pins the old default, which auto replaced.
Implementations§
Trait Implementations§
Source§impl Clone for Deprecated
impl Clone for Deprecated
Source§impl Debug for Deprecated
impl Debug for Deprecated
impl Eq for Deprecated
Source§impl PartialEq for Deprecated
impl PartialEq for Deprecated
impl StructuralPartialEq for Deprecated
Auto Trait Implementations§
impl Freeze for Deprecated
impl RefUnwindSafe for Deprecated
impl Send for Deprecated
impl Sync for Deprecated
impl Unpin for Deprecated
impl UnsafeUnpin for Deprecated
impl UnwindSafe for Deprecated
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.