pub struct QuDAGNode {
pub id: Uuid,
pub data: Vec<u8>,
pub hash: Vec<u8>,
pub parents: Vec<Uuid>,
pub timestamp: u64,
pub signature: Option<Vec<u8>>,
}
Expand description
A node in the QuDAG network
Fields§
§id: Uuid
§data: Vec<u8>
§hash: Vec<u8>
§parents: Vec<Uuid>
§timestamp: u64
§signature: Option<Vec<u8>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QuDAGNode
impl<'de> Deserialize<'de> for QuDAGNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QuDAGNode
impl RefUnwindSafe for QuDAGNode
impl Send for QuDAGNode
impl Sync for QuDAGNode
impl Unpin for QuDAGNode
impl UnwindSafe for QuDAGNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more