constructor for MemberRecord (#13473)

This commit is contained in:
Muharem Ismailov authored and GitHub committed 2023-02-27 16:41:23 +00:00
1 parent 40c36c0c8a
commit 85a5a5db13
1 file changed
+7
@@ -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 {