pub enum Principal {
EmailPrincipal(EmailPrincipal),
GroupPrincipal(GroupPrincipal),
DomainPrincipal(DomainPrincipal),
WorkspacePrincipal(WorkspacePrincipal),
AnyonePrincipal(AnyonePrincipal),
}
Expand description
Metadata about a principal.
JSON schema
{
"description": "Metadata about a principal.",
"oneOf": [
{
"$ref": "#/components/schemas/EmailPrincipal"
},
{
"$ref": "#/components/schemas/GroupPrincipal"
},
{
"$ref": "#/components/schemas/DomainPrincipal"
},
{
"$ref": "#/components/schemas/WorkspacePrincipal"
},
{
"$ref": "#/components/schemas/AnyonePrincipal"
}
],
"x-schema-name": "Principal"
}
Variants§
EmailPrincipal(EmailPrincipal)
GroupPrincipal(GroupPrincipal)
DomainPrincipal(DomainPrincipal)
WorkspacePrincipal(WorkspacePrincipal)
AnyonePrincipal(AnyonePrincipal)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Principal
impl<'de> Deserialize<'de> for Principal
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<AnyonePrincipal> for Principal
impl From<AnyonePrincipal> for Principal
Source§fn from(value: AnyonePrincipal) -> Self
fn from(value: AnyonePrincipal) -> Self
Converts to this type from the input type.
Source§impl From<DomainPrincipal> for Principal
impl From<DomainPrincipal> for Principal
Source§fn from(value: DomainPrincipal) -> Self
fn from(value: DomainPrincipal) -> 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.
Source§impl From<GroupPrincipal> for Principal
impl From<GroupPrincipal> for Principal
Source§fn from(value: GroupPrincipal) -> Self
fn from(value: GroupPrincipal) -> Self
Converts to this type from the input type.
Source§impl From<WorkspacePrincipal> for Principal
impl From<WorkspacePrincipal> for Principal
Source§fn from(value: WorkspacePrincipal) -> Self
fn from(value: WorkspacePrincipal) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnwindSafe for Principal
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