pub struct User {
pub id: Option<i64>,
pub username: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub password: Option<String>,
pub phone: Option<String>,
pub user_status: Option<i32>,
}Expand description
A User who is purchasing from the pet store
Fields§
§id: Option<i64>§username: Option<String>§first_name: Option<String>§last_name: Option<String>§email: Option<String>§password: Option<String>§phone: Option<String>§user_status: Option<i32>User Status
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 FromStr for User
Converts Query Parameters representation (style=form, explode=false) to a User value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for User
Converts Query Parameters representation (style=form, explode=false) to a User value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for User
Converts the User value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for User
Converts the User value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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