Create a new stream id for a model type
(id: Cid)
| 103 | impl 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 { |
no outgoing calls
no test coverage detected