pub struct ProposalListBuilder { /* private fields */ }Expand description
Builder used to create a list of Proposals
Implementations§
Source§impl ProposalListBuilder
impl ProposalListBuilder
pub fn new() -> Self
pub fn with_proposals(self, value: Vec<Proposal>) -> Self
pub fn build(self) -> Result<ProposalList, BuilderError>
Trait Implementations§
Source§impl Debug for ProposalListBuilder
impl Debug for ProposalListBuilder
Source§impl Default for ProposalListBuilder
impl Default for ProposalListBuilder
Source§fn default() -> ProposalListBuilder
fn default() -> ProposalListBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProposalListBuilder
impl RefUnwindSafe for ProposalListBuilder
impl Send for ProposalListBuilder
impl Sync for ProposalListBuilder
impl Unpin for ProposalListBuilder
impl UnwindSafe for ProposalListBuilder
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