pub struct WaitpointHmac(/* private fields */);Expand description
HMAC token that binds a waitpoint to its mint-time identity. Wire
shape kid:40hex.
Wraps crate::types::WaitpointToken so bearer-credential Debug /
Display redaction (WaitpointToken("kid1:<REDACTED:len=40>")) flows
through automatically — no derived formatter can leak the raw
digest when a WaitpointSpec is debug-printed via
tracing::debug!(spec=?spec).
Newtype-wrapping (vs. a pub use alias) keeps trait signatures
naming the waitpoint-bound HMAC role explicitly.
Implementations§
Source§impl WaitpointHmac
impl WaitpointHmac
pub fn new(token: impl Into<String>) -> Self
Sourcepub fn token(&self) -> &WaitpointToken
pub fn token(&self) -> &WaitpointToken
Borrow the wrapped token. The wrapped type’s Debug/Display
redact — call sites that need the raw digest must explicitly
call WaitpointToken::as_str.
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Borrow the raw kid:40hex string. Prefer Self::token for
non-redacted call sites; this method exists only for transport
/ FCALL ARGV construction where the raw wire bytes are required.
Trait Implementations§
Source§impl Clone for WaitpointHmac
impl Clone for WaitpointHmac
Source§fn clone(&self) -> WaitpointHmac
fn clone(&self) -> WaitpointHmac
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more