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

Method with_init

core/src/event_id.rs:406–415  ·  view source on GitHub ↗

Specify the init cid of the event

(mut self, init: &Cid)

Source from the content-addressed store, hash-verified

404 }
405 /// Specify the init cid of the event
406 pub fn with_init(mut self, init: &Cid) -> Builder<WithInit> {
407 self.state
408 .bytes
409 .extend(last4_bytes(init.to_bytes().as_slice()));
410 Builder {
411 state: WithInit {
412 bytes: self.state.bytes,
413 },
414 }
415 }
416}
417impl Builder<WithInit> {
418 /// Specify that the minimum event CID should be used for the event

Callers 12

newMethod · 0.80
no_cidFunction · 0.80
get_interestsFunction · 0.80
get_interests_for_peerFunction · 0.80
event_id_builderFunction · 0.80
build_event_idFunction · 0.80
event_id_minFunction · 0.80
event_id_maxFunction · 0.80
buildMethod · 0.80

Calls 4

last4_bytesFunction · 0.85
extendMethod · 0.45
as_sliceMethod · 0.45
to_bytesMethod · 0.45

Tested by 9

no_cidFunction · 0.64
get_interestsFunction · 0.64
get_interests_for_peerFunction · 0.64
event_id_builderFunction · 0.64
build_event_idFunction · 0.64
event_id_minFunction · 0.64
event_id_maxFunction · 0.64