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