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

Function encode

libatomic/src/review/incremental.rs:166–168  ·  view source on GitHub ↗
(value: &T)

Source from the content-addressed store, hash-verified

164}
165
166fn encode<T: Serialize>(value: &T) -> CliResult<Value> {
167 serde_json::to_value(value).map_err(|e| CliError::Internal(e.into()))
168}
169
170fn validate_session(id: &str) -> CliResult<()> {
171 // Match SessionStore's path-component contract even when no store exists.

Calls

no outgoing calls