dsf_core/service/
kinds.rs1#[cfg(feature = "alloc")]
2use alloc::prelude::v1::*;
3
4#[derive(PartialEq, Debug, Clone)]
7#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
8pub enum ServiceKind {
9 Generic,
10 Peer,
11 Replica,
12 Unknown(i16),
13}
14
15#[derive(PartialEq, Debug, Clone)]
16#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
17pub struct Generic {
18 pub name: String,
19 pub addresses: Vec<String>,
20 }
22
23#[derive(PartialEq, Debug, Clone)]
24#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
25pub struct Unknown {
26 pub body: Vec<u8>,
27}