pub struct EmailPrincipal {
pub email: String,
pub type_: EmailPrincipalType,
}
Expand description
EmailPrincipal
JSON schema
{
"type": "object",
"required": [
"email",
"type"
],
"properties": {
"email": {
"description": "Email for the principal.",
"examples": [
"example@domain.com"
],
"type": "string"
},
"type": {
"description": "The type of this principal.",
"type": "string",
"enum": [
"email"
],
"x-tsType": "PrincipalType.Email"
}
},
"additionalProperties": false
}
Fields§
§email: String
Email for the principal.
type_: EmailPrincipalType
The type of this principal.
Trait Implementations§
Source§impl Clone for EmailPrincipal
impl Clone for EmailPrincipal
Source§fn clone(&self) -> EmailPrincipal
fn clone(&self) -> EmailPrincipal
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 EmailPrincipal
impl Debug for EmailPrincipal
Source§impl<'de> Deserialize<'de> for EmailPrincipal
impl<'de> Deserialize<'de> for EmailPrincipal
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<&EmailPrincipal> for EmailPrincipal
impl From<&EmailPrincipal> for EmailPrincipal
Source§fn from(value: &EmailPrincipal) -> Self
fn from(value: &EmailPrincipal) -> Self
Converts to this type from the input type.
Source§impl From<EmailPrincipal> for Principal
impl From<EmailPrincipal> for Principal
Source§fn from(value: EmailPrincipal) -> Self
fn from(value: EmailPrincipal) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EmailPrincipal
impl RefUnwindSafe for EmailPrincipal
impl Send for EmailPrincipal
impl Sync for EmailPrincipal
impl Unpin for EmailPrincipal
impl UnwindSafe for EmailPrincipal
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