1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
use crate::*;
use serde::Serialize;
pub type EmptyType = NamedObjType<EmptyDescContent, EmptyBodyContent>;
pub type Empty = NamedObjectBase<EmptyType>;
#[derive(RawEncode, RawDecode, Clone)]
pub struct EmptyDescContent {}
impl DescContent for EmptyDescContent {
fn obj_type() -> u16 {
0u16
}
type OwnerType = SubDescNone;
type AreaType = SubDescNone;
type AuthorType = SubDescNone;
type PublicKeyType = SubDescNone;
}
#[derive(Clone, Default, cyfs_base_derive::RawEncode, cyfs_base_derive::RawDecode, Serialize)]
pub struct EmptyBodyContent;
impl BodyContent for EmptyBodyContent {}
#[derive(Clone, Default, Serialize)]
pub struct EmptyProtobufBodyContent;
impl BodyContent for EmptyProtobufBodyContent {
fn format(&self) -> u8 {
OBJECT_CONTENT_CODEC_FORMAT_PROTOBUF
}
}
crate::inner_impl_empty_protobuf_raw_codec!(EmptyProtobufBodyContent);