constructor for MemberRecord (#13473)

This commit is contained in:
Muharem Ismailov
2023-02-27 17:41:23 +01:00
committed by GitHub
parent 40c36c0c8a
commit 85a5a5db13
@@ -170,6 +170,13 @@ pub struct MemberRecord {
rank: Rank,
}
impl MemberRecord {
// Constructs a new instance of [`MemberRecord`].
pub fn new(rank: Rank) -> Self {
Self { rank }
}
}
/// Record needed for every vote.
#[derive(PartialEq, Eq, Clone, Copy, Encode, Decode, RuntimeDebug, TypeInfo, MaxEncodedLen)]
pub enum VoteRecord {