pub enum PrincipalId {
String(String),
Array(Vec<String>),
}
Expand description
Principal ID (can be either string or array of strings)
Variants§
String(String)
Single principal ID as a string
Array(Vec<String>)
Multiple principal IDs as an array of strings
Trait Implementations§
Source§impl Clone for PrincipalId
impl Clone for PrincipalId
Source§fn clone(&self) -> PrincipalId
fn clone(&self) -> PrincipalId
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 PrincipalId
impl Debug for PrincipalId
Source§impl<'de> Deserialize<'de> for PrincipalId
impl<'de> Deserialize<'de> for PrincipalId
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 PartialEq for PrincipalId
impl PartialEq for PrincipalId
Source§impl Serialize for PrincipalId
impl Serialize for PrincipalId
impl Eq for PrincipalId
impl StructuralPartialEq for PrincipalId
Auto Trait Implementations§
impl Freeze for PrincipalId
impl RefUnwindSafe for PrincipalId
impl Send for PrincipalId
impl Sync for PrincipalId
impl Unpin for PrincipalId
impl UnwindSafe for PrincipalId
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