pub struct SnapshotBuilder {
tag: String,
groups: Vec<String>,
voters_count: usize,
contributions_count: usize,
update_timestamp: i64,
}
Fields§
§tag: String
§groups: Vec<String>
§voters_count: usize
§contributions_count: usize
§update_timestamp: i64
Implementations§
source§impl SnapshotBuilder
impl SnapshotBuilder
pub fn with_tag<S: Into<String>>(self, tag: S) -> Self
pub fn with_entries_count(self, voters_count: usize) -> Self
pub fn with_contributions_count(self, contributions_count: usize) -> Self
pub fn with_groups<S: Into<String>>(self, groups: Vec<S>) -> Self
pub fn with_timestamp(self, timestamp: i64) -> Self
pub fn build(self) -> Snapshot
Trait Implementations§
source§impl Debug for SnapshotBuilder
impl Debug for SnapshotBuilder
source§impl Default for SnapshotBuilder
impl Default for SnapshotBuilder
source§fn default() -> SnapshotBuilder
fn default() -> SnapshotBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SnapshotBuilder
impl Send for SnapshotBuilder
impl Sync for SnapshotBuilder
impl Unpin for SnapshotBuilder
impl UnwindSafe for SnapshotBuilder
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