pub struct RawSnapshotBuilder {
tag: String,
update_timestamp: i64,
min_stake_threshold: Value,
voting_power_cap: Fraction,
direct_voters_group: Option<String>,
representatives_group: Option<String>,
voting_registrations_count: usize,
voting_registrations: Option<Vec<VotingRegistration>>,
dreps: Option<Dreps>,
}
Fields§
§tag: String
§update_timestamp: i64
§min_stake_threshold: Value
§voting_power_cap: Fraction
§direct_voters_group: Option<String>
§representatives_group: Option<String>
§voting_registrations_count: usize
§voting_registrations: Option<Vec<VotingRegistration>>
§dreps: Option<Dreps>
Implementations§
source§impl RawSnapshotBuilder
impl RawSnapshotBuilder
pub fn with_tag<S: Into<String>>(self, tag: S) -> Self
pub fn with_voting_registrations_count( self, voting_registrations_count: usize ) -> Self
pub fn with_voting_registrations( self, voting_registrations: Vec<VotingRegistration> ) -> Self
pub fn with_dreps(self, dreps: Dreps) -> Self
pub fn with_timestamp(self, timestamp: i64) -> Self
pub fn with_voting_power_cap(self, voting_power_cap: Fraction) -> Self
pub fn with_min_stake_threshold(self, min_stake_threshold: Value) -> Self
pub fn build(self) -> RawSnapshot
Trait Implementations§
source§impl Debug for RawSnapshotBuilder
impl Debug for RawSnapshotBuilder
source§impl Default for RawSnapshotBuilder
impl Default for RawSnapshotBuilder
source§fn default() -> RawSnapshotBuilder
fn default() -> RawSnapshotBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RawSnapshotBuilder
impl Send for RawSnapshotBuilder
impl Sync for RawSnapshotBuilder
impl Unpin for RawSnapshotBuilder
impl UnwindSafe for RawSnapshotBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more