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