pub struct ConfigTier {
pub tier: String,
pub source: String,
pub doc: String,
}Expand description
One provenance-tagged config tier supplied during route open.
Fields§
§tier: StringTrust label for this tier.
Known v1 values are "user" and "project", but this is intentionally
an open string so a future tier is a value, not a struct change.
SECURITY INVARIANT: the label is stamped from source (the file path
that was read), never derived from doc content. subc preserves labels
exactly and never relabels them in transit.
source: StringAbsolute path the document was read from, used for provenance and by AFT to infer format/JSONC behavior and produce diagnostics.
doc: StringVerbatim config-source text.
subc treats this as opaque bytes-as-text and does not interpret, parse, merge, or validate it. AFT owns parsing, including JSONC handling.
Trait Implementations§
Source§impl Clone for ConfigTier
impl Clone for ConfigTier
Source§fn clone(&self) -> ConfigTier
fn clone(&self) -> ConfigTier
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 ConfigTier
impl Debug for ConfigTier
Source§impl<'de> Deserialize<'de> for ConfigTier
impl<'de> Deserialize<'de> for ConfigTier
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConfigTier
impl PartialEq for ConfigTier
Source§fn eq(&self, other: &ConfigTier) -> bool
fn eq(&self, other: &ConfigTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigTier
impl Serialize for ConfigTier
impl StructuralPartialEq for ConfigTier
Auto Trait Implementations§
impl Freeze for ConfigTier
impl RefUnwindSafe for ConfigTier
impl Send for ConfigTier
impl Sync for ConfigTier
impl Unpin for ConfigTier
impl UnsafeUnpin for ConfigTier
impl UnwindSafe for ConfigTier
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