Add deserialize to CoverTrafficSettings (#913)

This commit is contained in:
Álex 2024-11-08 02:45:21 +01:00 committed by GitHub
parent 7b984a4e29
commit a3c2fe5d55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -7,8 +7,9 @@ use std::marker::PhantomData;
use std::ops::{DerefMut, Div};
use std::pin::Pin;
use std::task::{Context, Poll};
use serde::Deserialize;
#[derive(Copy, Clone)]
#[derive(Copy, Clone, Deserialize)]
pub struct CoverTrafficSettings {
pub node_id: [u8; 32],
pub number_of_hops: usize,