MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_content_hash

Method with_content_hash

atomic-core/src/record/context.rs:742–745  ·  view source on GitHub ↗

Set the content hash.

(mut self, hash: crate::types::Hash)

Source from the content-addressed store, hash-verified

740
741 /// Set the content hash.
742 pub fn with_content_hash(mut self, hash: crate::types::Hash) -> Self {
743 self.content_hash = Some(hash);
744 self
745 }
746
747 /// Set the file size.
748 pub fn with_size(mut self, size: u64) -> Self {

Calls

no outgoing calls