mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
constructor for MemberRecord (#13473)
This commit is contained in:
@@ -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