pub struct Surfaces {
pub cli: bool,
pub api: bool,
pub mcp: bool,
pub cockpit: bool,
pub docs: bool,
}Expand description
The interfaces a feature is exposed through, decided from what its references project
and from nothing a file says. Each is a fact with a reason a reader can check: cli is
true when a module of the feature has a capability with a command-line path or the
feature names a shell command; api when a module has an HTTP route; mcp when a module
has an MCP tool or resource, or the feature names a kind, since every object of the layer
is an MCP resource; cockpit when the feature names a Cockpit area or a module, since
every capability has a Cockpit page; docs when it names a document.
Fields§
§cli: boolThe command line: the executable’s own, or the shell tool’s.
api: boolThe HTTP routes under /api/v1/, and the OpenAPI document over them.
mcp: boolMCP: a tool, or a resource.
cockpit: boolThe Cockpit.
docs: boolThe documentation.
Implementations§
Trait Implementations§
impl Copy for Surfaces
Source§impl<'de> Deserialize<'de> for Surfaces
impl<'de> Deserialize<'de> for Surfaces
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Surfaces
Source§impl JsonSchema for Surfaces
impl JsonSchema for Surfaces
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Surfaces
Auto Trait Implementations§
impl Freeze for Surfaces
impl RefUnwindSafe for Surfaces
impl Send for Surfaces
impl Sync for Surfaces
impl Unpin for Surfaces
impl UnsafeUnpin for Surfaces
impl UnwindSafe for Surfaces
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.