pub struct ApiKeyFile {
pub id: String,
pub name: String,
pub token_hash: String,
pub created_at: String,
pub wallet_ids: Vec<String>,
pub policy_ids: Vec<String>,
pub expires_at: Option<String>,
pub wallet_secrets: HashMap<String, Value>,
}Expand description
An API key file stored at ~/.ows/keys/<id>.json.
Fields§
§id: String§name: String§token_hash: StringSHA-256 hash of the raw token (hex-encoded).
created_at: String§wallet_ids: Vec<String>Wallet IDs this key can access.
policy_ids: Vec<String>Policy IDs attached to this key (AND semantics).
expires_at: Option<String>Optional expiry timestamp.
wallet_secrets: HashMap<String, Value>Per-wallet encrypted mnemonic copies, keyed by wallet ID. Each value is a CryptoEnvelope encrypted with HKDF(token).
Trait Implementations§
Source§impl Clone for ApiKeyFile
impl Clone for ApiKeyFile
Source§fn clone(&self) -> ApiKeyFile
fn clone(&self) -> ApiKeyFile
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 ApiKeyFile
impl Debug for ApiKeyFile
Source§impl<'de> Deserialize<'de> for ApiKeyFile
impl<'de> Deserialize<'de> for ApiKeyFile
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
Auto Trait Implementations§
impl Freeze for ApiKeyFile
impl RefUnwindSafe for ApiKeyFile
impl Send for ApiKeyFile
impl Sync for ApiKeyFile
impl Unpin for ApiKeyFile
impl UnsafeUnpin for ApiKeyFile
impl UnwindSafe for ApiKeyFile
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