Skip to content
Snippets Groups Projects
Commit 85a5a5db authored by Muharem Ismailov's avatar Muharem Ismailov Committed by GitHub
Browse files

constructor for MemberRecord (#13473)

parent 40c36c0c
Branches
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment