pub enum PackPrincipal {
UserPrincipal(PackUserPrincipal),
WorkspacePrincipal(PackWorkspacePrincipal),
GlobalPrincipal(PackGlobalPrincipal),
}
Expand description
Metadata about a Pack principal.
JSON schema
{
"description": "Metadata about a Pack principal.",
"oneOf": [
{
"$ref": "#/components/schemas/PackUserPrincipal"
},
{
"$ref": "#/components/schemas/PackWorkspacePrincipal"
},
{
"$ref": "#/components/schemas/PackGlobalPrincipal"
}
],
"x-schema-name": "PackPrincipal"
}
Variants§
UserPrincipal(PackUserPrincipal)
WorkspacePrincipal(PackWorkspacePrincipal)
GlobalPrincipal(PackGlobalPrincipal)
Trait Implementations§
Source§impl Clone for PackPrincipal
impl Clone for PackPrincipal
Source§fn clone(&self) -> PackPrincipal
fn clone(&self) -> PackPrincipal
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 PackPrincipal
impl Debug for PackPrincipal
Source§impl<'de> Deserialize<'de> for PackPrincipal
impl<'de> Deserialize<'de> for PackPrincipal
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<&PackPrincipal> for PackPrincipal
impl From<&PackPrincipal> for PackPrincipal
Source§fn from(value: &PackPrincipal) -> Self
fn from(value: &PackPrincipal) -> Self
Converts to this type from the input type.
Source§impl From<PackGlobalPrincipal> for PackPrincipal
impl From<PackGlobalPrincipal> for PackPrincipal
Source§fn from(value: PackGlobalPrincipal) -> Self
fn from(value: PackGlobalPrincipal) -> 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.
Source§impl From<PackWorkspacePrincipal> for PackPrincipal
impl From<PackWorkspacePrincipal> for PackPrincipal
Source§fn from(value: PackWorkspacePrincipal) -> Self
fn from(value: PackWorkspacePrincipal) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackPrincipal
impl RefUnwindSafe for PackPrincipal
impl Send for PackPrincipal
impl Sync for PackPrincipal
impl Unpin for PackPrincipal
impl UnwindSafe for PackPrincipal
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