pub struct ProductListBuilder {
pub products: Option<Vec<Product>>,
}Expand description
Builder used to create a ProductList
Fields§
§products: Option<Vec<Product>>Implementations§
Source§impl ProductListBuilder
impl ProductListBuilder
pub fn new() -> Self
pub fn with_products(self, products: Vec<Product>) -> ProductListBuilder
pub fn build(self) -> Result<ProductList, ProductListBuildError>
Trait Implementations§
Source§impl Clone for ProductListBuilder
impl Clone for ProductListBuilder
Source§fn clone(&self) -> ProductListBuilder
fn clone(&self) -> ProductListBuilder
Returns a duplicate 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 Default for ProductListBuilder
impl Default for ProductListBuilder
Source§fn default() -> ProductListBuilder
fn default() -> ProductListBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProductListBuilder
impl RefUnwindSafe for ProductListBuilder
impl Send for ProductListBuilder
impl Sync for ProductListBuilder
impl Unpin for ProductListBuilder
impl UnwindSafe for ProductListBuilder
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