You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
510 B
Rust
22 lines
510 B
Rust
use crate::hydrus_serializable::{ConstNumberTrait, HydrusSerializable, SerializableId};
|
|
use serde::Deserialize;
|
|
|
|
#[derive(Clone, Debug, Deserialize)]
|
|
pub struct VersionOne;
|
|
|
|
impl ConstNumberTrait for VersionOne {
|
|
fn value() -> u64 {
|
|
1
|
|
}
|
|
}
|
|
|
|
#[derive(Clone, Debug, Deserialize)]
|
|
#[serde(bound = "")]
|
|
pub struct HydrusSerWrapper<T: HydrusSerializable> {
|
|
#[allow(unused)]
|
|
pub type_id: SerializableId<T>,
|
|
#[allow(unused)]
|
|
pub version: SerializableId<VersionOne>,
|
|
pub inner: T,
|
|
}
|