pub struct ShadowedField {
pub field: &'static str,
pub frontmatter_value: String,
pub override_value: String,
}Expand description
A frontmatter field that was present but shadowed by an explicit flag/parameter override. Recorded so callers can warn the user that their frontmatter value was ignored.
Fields§
§field: &'static strField name as it appears in frontmatter (e.g. project, space_key).
frontmatter_value: StringThe value present in the frontmatter.
override_value: StringThe overriding value supplied via flag/parameter.
Implementations§
Source§impl ShadowedField
impl ShadowedField
Sourcepub fn warning_line(&self) -> String
pub fn warning_line(&self) -> String
One-line warning, suitable for stderr (CLI) or in-band prepending (MCP, where stderr is not visible to the caller).
Trait Implementations§
Source§impl Clone for ShadowedField
impl Clone for ShadowedField
Source§fn clone(&self) -> ShadowedField
fn clone(&self) -> ShadowedField
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 ShadowedField
impl Debug for ShadowedField
impl Eq for ShadowedField
Source§impl PartialEq for ShadowedField
impl PartialEq for ShadowedField
Source§fn eq(&self, other: &ShadowedField) -> bool
fn eq(&self, other: &ShadowedField) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShadowedField
Auto Trait Implementations§
impl Freeze for ShadowedField
impl RefUnwindSafe for ShadowedField
impl Send for ShadowedField
impl Sync for ShadowedField
impl Unpin for ShadowedField
impl UnsafeUnpin for ShadowedField
impl UnwindSafe for ShadowedField
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.