pub struct GeneratedKeyWire {
pub key: String,
pub hash: String,
}Expand description
POST /data/api/v1/api-token/generate — the mint. The key is the
plaintext token, returned here and nowhere else; hash is what the
resource record stores. Live-captured 8.3.6:
{ "key": "<43-char urlsafe plaintext — REDACTED, same shape>",
"hash": "<43-char urlsafe stored hash — REDACTED, same shape>" }Redaction discipline: this struct carries the plaintext between the
client parse and the action’s ONE exposure site (the result model +
keyring write). It deliberately implements Debug with the fields
visible — it lives core-internal for one hop; the ACTION result is
the documented exposure boundary.
Fields§
§key: StringThe plaintext token (43-char urlsafe) — the only place the gateway ever returns it.
hash: StringThe stored hash — rides the resource record’s
config.settings.tokenHash.
Trait Implementations§
Source§impl Clone for GeneratedKeyWire
impl Clone for GeneratedKeyWire
Source§fn clone(&self) -> GeneratedKeyWire
fn clone(&self) -> GeneratedKeyWire
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneratedKeyWire
impl Debug for GeneratedKeyWire
Source§impl<'de> Deserialize<'de> for GeneratedKeyWire
impl<'de> Deserialize<'de> for GeneratedKeyWire
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 GeneratedKeyWire
impl RefUnwindSafe for GeneratedKeyWire
impl Send for GeneratedKeyWire
impl Sync for GeneratedKeyWire
impl Unpin for GeneratedKeyWire
impl UnsafeUnpin for GeneratedKeyWire
impl UnwindSafe for GeneratedKeyWire
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