MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / model

Method model

core/src/stream_id.rs:105–110  ·  view source on GitHub ↗

Create a new stream id for a model type

(id: Cid)

Source from the content-addressed store, hash-verified

103impl StreamId {
104 /// Create a new stream id for a model type
105 pub fn model(id: Cid) -> Self {
106 Self {
107 r#type: StreamIdType::Model,
108 cid: id,
109 }
110 }
111
112 /// Whether this stream id is a model type
113 pub fn is_model(&self) -> bool {

Callers 2

try_fromMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected