Struct gift_shop::http::CreateGiftCardPayload
source · pub struct CreateGiftCardPayload {
name: String,
price: i64,
count: usize,
}
Fields§
§name: String
§price: i64
§count: usize
Trait Implementations§
source§impl<'de> Deserialize<'de> for CreateGiftCardPayload
impl<'de> Deserialize<'de> for CreateGiftCardPayload
source§fn 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
source§impl From<CreateGiftCardPayload> for CreateGiftCard
impl From<CreateGiftCardPayload> for CreateGiftCard
source§fn from(payload: CreateGiftCardPayload) -> Self
fn from(payload: CreateGiftCardPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CreateGiftCardPayload
impl Send for CreateGiftCardPayload
impl Sync for CreateGiftCardPayload
impl Unpin for CreateGiftCardPayload
impl UnwindSafe for CreateGiftCardPayload
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