pub struct ApiReqUserCreate {
pub email: String,
pub password: String,
}Expand description
ApiReqUserCreate
§Request Type For create_user
Create a new user in the db
This type is the deserialized input for:
create_user(crate::requests::user::create_user::create_user]
§Usage
This type is constructed from the deserialized
bytes (&[u8]) argument
on the
create_user
function.
§Arguments
email-String- user emailpassword-String- new user password
Fields§
§email: String§password: StringTrait Implementations§
Source§impl Clone for ApiReqUserCreate
impl Clone for ApiReqUserCreate
Source§fn clone(&self) -> ApiReqUserCreate
fn clone(&self) -> ApiReqUserCreate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ApiReqUserCreate
impl<'de> Deserialize<'de> for ApiReqUserCreate
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
Auto Trait Implementations§
impl Freeze for ApiReqUserCreate
impl RefUnwindSafe for ApiReqUserCreate
impl Send for ApiReqUserCreate
impl Sync for ApiReqUserCreate
impl Unpin for ApiReqUserCreate
impl UnsafeUnpin for ApiReqUserCreate
impl UnwindSafe for ApiReqUserCreate
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