MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / kind_is_default

Function kind_is_default

atomic-canonical/src/node.rs:254–256  ·  view source on GitHub ↗

Whether a `kind` holds the default value. When it does, the field is omitted from serialization entirely, so an ordinary intent's JSON (and its content/substance hash) is byte-identical to the pre-`kind` shape.

(kind: &str)

Source from the content-addressed store, hash-verified

252/// from serialization entirely, so an ordinary intent's JSON (and its
253/// content/substance hash) is byte-identical to the pre-`kind` shape.
254pub fn kind_is_default(kind: &str) -> bool {
255 kind == "feature"
256}
257
258/// The canonical Intent node.
259#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected