pub struct AIChainVote {
pub block_id: [u8; 32],
pub vote_type: VoteType,
pub voter: Vec<u8>,
pub signature: Vec<u8>,
}Expand description
AI-Chain vote
Fields§
§block_id: [u8; 32]Block being voted on
vote_type: VoteTypeVote type
voter: Vec<u8>Voter’s quantum-safe public key
signature: Vec<u8>Vote signature (ML-DSA)
Implementations§
Trait Implementations§
Source§impl Clone for AIChainVote
impl Clone for AIChainVote
Source§fn clone(&self) -> AIChainVote
fn clone(&self) -> AIChainVote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AIChainVote
impl Debug for AIChainVote
Source§impl<'de> Deserialize<'de> for AIChainVote
impl<'de> Deserialize<'de> for AIChainVote
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 AIChainVote
impl RefUnwindSafe for AIChainVote
impl Send for AIChainVote
impl Sync for AIChainVote
impl Unpin for AIChainVote
impl UnsafeUnpin for AIChainVote
impl UnwindSafe for AIChainVote
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