Skip to main content

Omitted

Trait Omitted 

Source
pub trait Omitted<T> {
    // Required method
    fn omitted() -> T;
}
Expand description

Supplies a typed placeholder for fields outside an executable view.

Kept generic so deriving an ordinary command never imposes Default on its values. The process-level view entry point selects DefaultViewOmitter, and only a CLI that actually declares a view therefore needs omitted field types to implement Default.

Required Methods§

Source

fn omitted() -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§