Skip to main content

FloorCommand

Struct FloorCommand 

Source
pub struct FloorCommand {
    pub name: String,
    pub run: Vec<String>,
    pub scope: FloorScope,
    pub inputs: DisplayOnly<FloorInputs>,
    pub install: Option<String>,
    pub on_stop: bool,
    pub on_new_read_only: bool,
    pub reconcile_ignored: bool,
    pub covers_ignored_of: Option<String>,
}

Fields§

§name: String

Unique across the table: --skip and covers_ignored_of both address commands by name.

§run: Vec<String>

argv, never a shell string — a shell string is an injection surface and a quoting-bug surface, and neither belongs in a gate.

§scope: FloorScope§inputs: DisplayOnly<FloorInputs>

Display-only (F79): its three readers are all disclosure text in the floor verb, so an unrecognized value degrades to repo with a NOTE instead of rejecting the manifest.

§install: Option<String>

The install hint a missing binary’s error carries (the db.rs run_tool pattern: an absent tool is a loud named failure, never a silent skip).

§on_stop: bool

Whether the Stop sweep runs this command. Default false — the conservative posture, and the whole Stop integration ships dark until a human rules a command in.

§on_new_read_only: bool

Whether this command runs as a pre-RED lint gate: when a commit stages a NEW file under a read_only_paths glob, check --staged runs this command before the file is frozen (F72). Default false, mirroring on_stop — the mechanism ships dark until a human opts a command in.

§reconcile_ignored: bool

Whether this command’s output carries cargo-test-shaped test result: lines whose ignored count must be accounted for.

§covers_ignored_of: Option<String>

Declares that THIS command executes the tests the named command reported as ignored. The link is declared rather than guessed because the accounting is only as trustworthy as the claim it checks.

Trait Implementations§

Source§

impl Debug for FloorCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FloorCommand

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.