#[non_exhaustive]pub struct VoteSummaryBuilder { /* private fields */ }
Expand description
A builder for VoteSummary
.
Implementations§
source§impl VoteSummaryBuilder
impl VoteSummaryBuilder
sourcepub fn member_name(self, input: impl Into<String>) -> Self
pub fn member_name(self, input: impl Into<String>) -> Self
The name of the member that cast the vote.
sourcepub fn set_member_name(self, input: Option<String>) -> Self
pub fn set_member_name(self, input: Option<String>) -> Self
The name of the member that cast the vote.
sourcepub fn get_member_name(&self) -> &Option<String>
pub fn get_member_name(&self) -> &Option<String>
The name of the member that cast the vote.
sourcepub fn member_id(self, input: impl Into<String>) -> Self
pub fn member_id(self, input: impl Into<String>) -> Self
The unique identifier of the member that cast the vote.
sourcepub fn set_member_id(self, input: Option<String>) -> Self
pub fn set_member_id(self, input: Option<String>) -> Self
The unique identifier of the member that cast the vote.
sourcepub fn get_member_id(&self) -> &Option<String>
pub fn get_member_id(&self) -> &Option<String>
The unique identifier of the member that cast the vote.
sourcepub fn build(self) -> VoteSummary
pub fn build(self) -> VoteSummary
Consumes the builder and constructs a VoteSummary
.
Trait Implementations§
source§impl Clone for VoteSummaryBuilder
impl Clone for VoteSummaryBuilder
source§fn clone(&self) -> VoteSummaryBuilder
fn clone(&self) -> VoteSummaryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VoteSummaryBuilder
impl Debug for VoteSummaryBuilder
source§impl Default for VoteSummaryBuilder
impl Default for VoteSummaryBuilder
source§fn default() -> VoteSummaryBuilder
fn default() -> VoteSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for VoteSummaryBuilder
impl PartialEq for VoteSummaryBuilder
source§fn eq(&self, other: &VoteSummaryBuilder) -> bool
fn eq(&self, other: &VoteSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VoteSummaryBuilder
Auto Trait Implementations§
impl Freeze for VoteSummaryBuilder
impl RefUnwindSafe for VoteSummaryBuilder
impl Send for VoteSummaryBuilder
impl Sync for VoteSummaryBuilder
impl Unpin for VoteSummaryBuilder
impl UnwindSafe for VoteSummaryBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.