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);