pub enum PathRole {
Required,
Optional,
OverrideKey,
SecretKey,
}Expand description
Position in the manifest where a bad path was encountered.
Surfaced through ManifestError::Path so the user sees where
to look in the TOML file, not just what the violation was.
Variants§
Required
Inside the top-level required = [...] list.
Optional
Inside the top-level optional = [...] list.
OverrideKey
Key of an [overrides."<path>"] table.
SecretKey
Key of a [secret."<path>"] table.
Trait Implementations§
impl Copy for PathRole
impl Eq for PathRole
impl StructuralPartialEq for PathRole
Auto Trait Implementations§
impl Freeze for PathRole
impl RefUnwindSafe for PathRole
impl Send for PathRole
impl Sync for PathRole
impl Unpin for PathRole
impl UnsafeUnpin for PathRole
impl UnwindSafe for PathRole
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.