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

Class Interest

core/src/interest.rs:26–26  ·  view source on GitHub ↗

Interest declares an interest in a keyspace for a given peer. cbor seq: sep_key, the stream set identifier e.g. "model" peer_id, the libp2p address of the interested node indicator, an indicator of whether we have a min(0), range(1), or max(2) start_key, Inclusive start of the range stop_key, Exclusive end of the range not after, Expiration of the interest or 0 to indicate indefinite

Source from the content-addressed store, hash-verified

24/// stop_key, Exclusive end of the range
25/// not after, Expiration of the interest or 0 to indicate indefinite
26pub struct Interest(#[serde(with = "serde_bytes")] Vec<u8>);
27
28impl Interest {
29 /// Create a builder for constructing EventIds.

Callers 4

build_min_fencepostMethod · 0.70
build_max_fencepostMethod · 0.70
build_fencepostMethod · 0.70
buildMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected