Skip to main content

wire/
message_objects.rs

1// SPDX-License-Identifier: Apache-2.0
2use objects::object::ContentHash;
3use serde::{Deserialize, Serialize};
4
5use crate::{ObjectId, ObjectType};
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct ObjectRequest {
9    pub id: ObjectId,
10    pub have_base: Option<ContentHash>,
11}
12
13#[derive(Debug, Clone, Serialize, Deserialize)]
14pub struct ObjectData {
15    pub id: ObjectId,
16    pub obj_type: ObjectType,
17    pub data: Vec<u8>,
18    pub is_delta: bool,
19}