(&self)
| 33 | } |
| 34 | |
| 35 | pub fn encode(&self) -> Result<Vec<u8>, Error> { |
| 36 | match self { |
| 37 | CarHeader::V1(ref header) => { |
| 38 | let res = serde_ipld_dagcbor::to_vec(header)?; |
| 39 | Ok(res) |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | pub fn roots(&self) -> &[Cid] { |
| 45 | match self { |
no outgoing calls