pub struct FlagEntry {
pub path: String,
pub key: String,
pub stage: Stage,
pub visible: bool,
}Expand description
One flagged node discovered while pruning a command tree.
path is the colon-separated command path of the node (module/group/
command name chain), matching the same convention used elsewhere in this
crate for command paths — e.g. a list command nested under a project
group records "project:list". key and stage are the flag that
resolved for this node (its own declaration, or the nearest ancestor’s,
per cascading resolution). visible is whether the policy that produced
this entry judged the node visible.
Only nodes that resolve to a named flag are recorded; a node with no
flag anywhere in its ancestor chain implicitly resolves to Stage::Ga
with no key and is not recorded (nothing to introspect).
Fields§
§path: StringColon-separated command path of the flagged node.
key: StringFlag key that resolved for this node (own declaration or inherited).
stage: StageStage the resolved flag key declared.
visible: boolWhether the node was judged visible under the policy that produced it.
Trait Implementations§
impl Eq for FlagEntry
impl StructuralPartialEq for FlagEntry
Auto Trait Implementations§
impl Freeze for FlagEntry
impl RefUnwindSafe for FlagEntry
impl Send for FlagEntry
impl Sync for FlagEntry
impl Unpin for FlagEntry
impl UnsafeUnpin for FlagEntry
impl UnwindSafe for FlagEntry
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.