mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 21:25:03 +00:00
constructor for MemberRecord (#13473)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user