pub struct PackUserPrincipal {
pub email: String,
pub type_: PackUserPrincipalType,
}
Expand description
PackUserPrincipal
JSON schema
{
"type": "object",
"required": [
"email",
"type"
],
"properties": {
"email": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"user"
],
"x-tsType": "PackPrincipalType.User"
}
},
"additionalProperties": false,
"x-schema-name": "PackUserPrincipal"
}
Fields§
§email: String
§type_: PackUserPrincipalType
Trait Implementations§
Source§impl Clone for PackUserPrincipal
impl Clone for PackUserPrincipal
Source§fn clone(&self) -> PackUserPrincipal
fn clone(&self) -> PackUserPrincipal
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 PackUserPrincipal
impl Debug for PackUserPrincipal
Source§impl<'de> Deserialize<'de> for PackUserPrincipal
impl<'de> Deserialize<'de> for PackUserPrincipal
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<&PackUserPrincipal> for PackUserPrincipal
impl From<&PackUserPrincipal> for PackUserPrincipal
Source§fn from(value: &PackUserPrincipal) -> Self
fn from(value: &PackUserPrincipal) -> Self
Converts to this type from the input type.
Source§impl From<PackUserPrincipal> for PackPrincipal
impl From<PackUserPrincipal> for PackPrincipal
Source§fn from(value: PackUserPrincipal) -> Self
fn from(value: PackUserPrincipal) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackUserPrincipal
impl RefUnwindSafe for PackUserPrincipal
impl Send for PackUserPrincipal
impl Sync for PackUserPrincipal
impl Unpin for PackUserPrincipal
impl UnwindSafe for PackUserPrincipal
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