pub struct UnknownTokenTypeIdentifier(/* private fields */);token-exchange only.Expand description
The rejection for a *_token_type value that is not one RFC 8693 section 3 registers.
The payload is SEALED and read through UnknownTokenTypeIdentifier::identifier, matching
crate::par::RequestObjectKeyError, which is the crate’s other one-payload rejection type.
The two disagreed: this one published its String as a tuple field, so a host could also
CONSTRUCT one and hand it to code that reasonably assumed only this crate mints them. Readable
and not forgeable is the rule both follow now.
Implementations§
Source§impl UnknownTokenTypeIdentifier
impl UnknownTokenTypeIdentifier
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
The unregistered identifier, exactly as it arrived.
Echoing it back is safe and useful: it is a *_token_type URN out of the request, not a
token, and a host debugging an interoperability failure needs to see what the peer sent.
Trait Implementations§
Source§impl Clone for UnknownTokenTypeIdentifier
impl Clone for UnknownTokenTypeIdentifier
Source§fn clone(&self) -> UnknownTokenTypeIdentifier
fn clone(&self) -> UnknownTokenTypeIdentifier
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnknownTokenTypeIdentifier
impl Debug for UnknownTokenTypeIdentifier
Source§impl Display for UnknownTokenTypeIdentifier
impl Display for UnknownTokenTypeIdentifier
impl Eq for UnknownTokenTypeIdentifier
Source§impl Error for UnknownTokenTypeIdentifier
impl Error for UnknownTokenTypeIdentifier
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()