Struct frankenstein::objects::OrderInfo
source · [−]pub struct OrderInfo {
pub name: Option<String>,
pub phone_number: Option<String>,
pub email: Option<String>,
pub shipping_address: Option<ShippingAddress>,
}
Fields
name: Option<String>
phone_number: Option<String>
email: Option<String>
shipping_address: Option<ShippingAddress>
Implementations
sourceimpl OrderInfo
impl OrderInfo
sourcepub fn builder() -> OrderInfoBuilder<((), (), (), ())>
pub fn builder() -> OrderInfoBuilder<((), (), (), ())>
Create a builder for building OrderInfo
.
On the builder, call .name(...)
(optional), .phone_number(...)
(optional), .email(...)
(optional), .shipping_address(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of OrderInfo
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for OrderInfo
impl<'de> Deserialize<'de> for OrderInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for OrderInfo
Auto Trait Implementations
impl RefUnwindSafe for OrderInfo
impl Send for OrderInfo
impl Sync for OrderInfo
impl Unpin for OrderInfo
impl UnwindSafe for OrderInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more