pub struct CustomerV2 {
pub name: String,
pub age: u64,
pub favourite_colour: String,
}
Fields§
§name: String
§age: u64
§favourite_colour: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CustomerV2
impl<'de> Deserialize<'de> for CustomerV2
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<'__superstruct> From<&'__superstruct CustomerV2> for CustomerRef<'__superstruct>
impl<'__superstruct> From<&'__superstruct CustomerV2> for CustomerRef<'__superstruct>
Source§fn from(variant: &'__superstruct CustomerV2) -> Self
fn from(variant: &'__superstruct CustomerV2) -> Self
Converts to this type from the input type.
Source§impl From<CustomerV2> for Customer
impl From<CustomerV2> for Customer
Source§fn from(variant: CustomerV2) -> Self
fn from(variant: CustomerV2) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CustomerV2
impl RefUnwindSafe for CustomerV2
impl Send for CustomerV2
impl Sync for CustomerV2
impl Unpin for CustomerV2
impl UnwindSafe for CustomerV2
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