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<UpdateEmailRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateEmailRequestBody, <__D as Deserializer<'de>>::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) -> UpdateEmailRequestBody
fn from(value: &UpdateEmailRequestBody) -> UpdateEmailRequestBody
Converts to this type from the input type.
Source§impl Serialize for UpdateEmailRequestBody
impl Serialize for UpdateEmailRequestBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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