pub struct UpdateEmailRequestBody {
pub code: UpdateEmailRequestBodyCode,
pub new_address: String,
pub old_address: String,
pub user_id: String,
}Expand description
UpdateEmailRequestBody
JSON schema
{
"title": "UpdateEmailRequestBody",
"type": "object",
"required": [
"code",
"newAddress",
"oldAddress",
"user_id"
],
"properties": {
"code": {
"type": "string",
"maxLength": 6,
"minLength": 6
},
"newAddress": {
"type": "string",
"format": "email"
},
"oldAddress": {
"type": "string",
"format": "email"
},
"user_id": {
"type": "string"
}
}
}Fields§
§code: UpdateEmailRequestBodyCode§new_address: String§old_address: String§user_id: StringTrait Implementations§
Source§impl Clone for UpdateEmailRequestBody
impl Clone for UpdateEmailRequestBody
Source§fn clone(&self) -> UpdateEmailRequestBody
fn clone(&self) -> UpdateEmailRequestBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateEmailRequestBody
impl Debug for UpdateEmailRequestBody
Source§impl<'de> Deserialize<'de> for UpdateEmailRequestBody
impl<'de> Deserialize<'de> for UpdateEmailRequestBody
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<&UpdateEmailRequestBody> for UpdateEmailRequestBody
impl From<&UpdateEmailRequestBody> for UpdateEmailRequestBody
Source§fn from(value: &UpdateEmailRequestBody) -> Self
fn from(value: &UpdateEmailRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateEmailRequestBody
impl RefUnwindSafe for UpdateEmailRequestBody
impl Send for UpdateEmailRequestBody
impl Sync for UpdateEmailRequestBody
impl Unpin for UpdateEmailRequestBody
impl UnwindSafe for UpdateEmailRequestBody
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