pub struct HiveKeyV3 {
pub key_id: String,
pub public_key: String,
pub purposes: Vec<String>,
pub created_at: u64,
pub revoked_at: Option<u64>,
}Expand description
One key of a key set v3. Purposes stay strings here: the set’s root signature covers them, and the engine checks each use against them.
Fields§
§key_id: Stringhex(blake3(public key))[..16].
public_key: Stringbase64url (no padding) of the raw 32-byte Ed25519 key.
purposes: Vec<String>§created_at: u64Unix milliseconds.
revoked_at: Option<u64>Unix milliseconds; None while the key is in use.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HiveKeyV3
impl<'de> Deserialize<'de> for HiveKeyV3
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 HiveKeyV3
impl StructuralPartialEq for HiveKeyV3
Auto Trait Implementations§
impl Forget for HiveKeyV3
impl Freeze for HiveKeyV3
impl Move for HiveKeyV3
impl RefUnwindSafe for HiveKeyV3
impl Send for HiveKeyV3
impl Sync for HiveKeyV3
impl Unpin for HiveKeyV3
impl UnsafeUnpin for HiveKeyV3
impl UnwindSafe for HiveKeyV3
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