MCPcopy Create free account
hub / github.com/argumentcomputer/ix / mk

Method mk

crates/ffi/src/lean_iroh.rs:18–23  ·  view source on GitHub ↗

Build from `message` and `hash` strings. ```lean structure PutResponse where message : String hash : String ```

(message: &str, hash: &str)

Source from the content-addressed store, hash-verified

16 /// hash : String
17 /// ```
18 pub fn mk(message: &str, hash: &str) -> Self {
19 let ctor = LeanPutResponse::alloc(0);
20 ctor.set_obj(0, LeanString::new(message));
21 ctor.set_obj(1, LeanString::new(hash));
22 ctor
23 }
24}
25
26impl LeanGetResponse<LeanOwned> {

Callers

nothing calls this directly

Calls 1

from_bytesFunction · 0.85

Tested by

no test coverage detected