#[non_exhaustive]pub struct UserSigningKey {
pub kid: String,
pub user: PrincipalId,
pub public_key: [u8; 32],
pub status: UserSigningKeyStatus,
pub created_at: i64,
}Expand description
One Ed25519 pubkey trusted for delegations signed by a user.
public_key is the raw 32-byte Ed25519 key — wire encoding matches
UserDelegation::user_signing_key: base64url
no-pad.
The (cheers-side) enrollment flow that registers these keys is W122 on the yah side — out of scope for R020-F10. This struct + the trait below are the surface that flow eventually wires into; the in-memory impl + the trait shape land here so the camp-bootstrap path can be tested today.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kid: String§user: PrincipalIdThe user this key signs for. kind MUST be PrincipalKind::User.
public_key: [u8; 32]§status: UserSigningKeyStatus§created_at: i64Implementations§
Source§impl UserSigningKey
impl UserSigningKey
Sourcepub fn new(
kid: impl Into<String>,
user: PrincipalId,
public_key: [u8; 32],
status: UserSigningKeyStatus,
created_at: i64,
) -> Self
pub fn new( kid: impl Into<String>, user: PrincipalId, public_key: [u8; 32], status: UserSigningKeyStatus, created_at: i64, ) -> Self
Build a key record. Cross-crate construction needs a constructor
because the struct is #[non_exhaustive] (matches the pattern
OwnershipRow::new / RefreshTokenRecord::new use).
Trait Implementations§
Source§impl Clone for UserSigningKey
impl Clone for UserSigningKey
Source§impl Debug for UserSigningKey
impl Debug for UserSigningKey
Source§impl<'de> Deserialize<'de> for UserSigningKey
impl<'de> Deserialize<'de> for UserSigningKey
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 Eq for UserSigningKey
Source§impl PartialEq for UserSigningKey
impl PartialEq for UserSigningKey
Source§impl Serialize for UserSigningKey
impl Serialize for UserSigningKey
impl StructuralPartialEq for UserSigningKey
Auto Trait Implementations§
impl Freeze for UserSigningKey
impl RefUnwindSafe for UserSigningKey
impl Send for UserSigningKey
impl Sync for UserSigningKey
impl Unpin for UserSigningKey
impl UnsafeUnpin for UserSigningKey
impl UnwindSafe for UserSigningKey
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