pub enum CrossLinkValue {
Wildcard,
List(Vec<String>),
}Expand description
One entry in [cross_mem_links] (and the matching shape that
[[mem_management.create]].default_cross_links uses). The operator
writes either a list of mem names or the literal string "*"; mixed
lists containing "*" are rejected at parse with CONFIG_ERROR.
Empty lists ([]) are valid and behave identically to omission of
the key — kept as an explicit shape so an operator can encode “this
mem is intentionally locked down” without relying on absence.
Variants§
Wildcard
Wildcard — any current writable target is admitted.
List(Vec<String>)
Explicit allowlist of mem names. May be empty (default-deny for that mem).
Implementations§
Source§impl CrossLinkValue
impl CrossLinkValue
Sourcepub fn parse_toml(location: &str, value: &Value) -> Result<Self, ConfigError>
pub fn parse_toml(location: &str, value: &Value) -> Result<Self, ConfigError>
Parse a TOML value into a CrossLinkValue, rejecting mixed lists
containing "*" and any non-string-list shape. Used by both
[cross_mem_links] and [[mem_management.create]].default_cross_links.
Trait Implementations§
Source§impl Clone for CrossLinkValue
impl Clone for CrossLinkValue
Source§fn clone(&self) -> CrossLinkValue
fn clone(&self) -> CrossLinkValue
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 CrossLinkValue
impl Debug for CrossLinkValue
impl Eq for CrossLinkValue
Source§impl PartialEq for CrossLinkValue
impl PartialEq for CrossLinkValue
Source§fn eq(&self, other: &CrossLinkValue) -> bool
fn eq(&self, other: &CrossLinkValue) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CrossLinkValue
Auto Trait Implementations§
impl Freeze for CrossLinkValue
impl RefUnwindSafe for CrossLinkValue
impl Send for CrossLinkValue
impl Sync for CrossLinkValue
impl Unpin for CrossLinkValue
impl UnsafeUnpin for CrossLinkValue
impl UnwindSafe for CrossLinkValue
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.