pub struct Principal {
pub id: PrincipalId,
pub user_id: Option<UserId>,
pub name: String,
pub public_key: Vec<u8>,
pub x25519_public_key: Option<Vec<u8>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Principal (device or service account) record
Fields§
§id: PrincipalId§user_id: Option<UserId>§name: String§public_key: Vec<u8>§x25519_public_key: Option<Vec<u8>>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
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