snix_castore/proto/
chunkstore.rs1use crate::{
2 B3Digest,
3 proto::{GetChunkRequest, PutChunkResponse, StatChunkRequest},
4};
5
6impl StatChunkRequest {
7 pub fn with_digest(digest: B3Digest) -> Self {
8 Self {
9 digest: digest.into(),
10 }
11 }
12}
13
14impl GetChunkRequest {
15 pub fn with_digest(digest: B3Digest) -> Self {
16 Self {
17 digest: digest.into(),
18 }
19 }
20}
21
22impl PutChunkResponse {
23 pub fn with_digest(digest: B3Digest) -> Self {
24 Self {
25 digest: digest.into(),
26 }
27 }
28}