pub struct OrderInfoBuilder { /* private fields */ }Expand description
Builder for the OrderInfo structure
Implementations§
Source§impl OrderInfoBuilder
impl OrderInfoBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Instantiate the builder with the fields name, phone_number, email, shipping_address
Sourcepub fn phone_number(self, val: String) -> Self
pub fn phone_number(self, val: String) -> Self
Set the field phone_number to the given value
Sourcepub fn shipping_address(self, val: ShippingAddress) -> Self
pub fn shipping_address(self, val: ShippingAddress) -> Self
Set the field shipping_address to the given value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrderInfoBuilder
impl RefUnwindSafe for OrderInfoBuilder
impl Send for OrderInfoBuilder
impl Sync for OrderInfoBuilder
impl Unpin for OrderInfoBuilder
impl UnwindSafe for OrderInfoBuilder
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