pub struct Principal {
pub principal_id: PrincipalId,
pub tenant_id: TenantId,
pub principal_type: PrincipalType,
pub user_id: Option<String>,
pub display_name: Option<String>,
pub metadata: Option<Value>,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}Expand description
Principal identity for ownership and security scoping.
Fields§
§principal_id: PrincipalId§tenant_id: TenantId§principal_type: PrincipalType§user_id: Option<String>§display_name: Option<String>§metadata: Option<Value>§created_at: Timestamp§updated_at: TimestampTrait 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
impl StructuralPartialEq for Principal
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