pub enum RecordRefusal {
NoTrustedKey {
provider_id: String,
},
MissingSignature,
BadSignature {
provider_id: String,
},
WrongEntry {
requested: String,
received: String,
},
TooManyRedirects {
max: usize,
url: String,
},
}Expand description
Why a directory record was refused.
Regelungen zum Verzeichnisdienst 1.1, Kap. 2.2 (S. 6): „Die aktuelle Signatur eines Eintrags MUSS jederzeit anhand eines gültigen Signaturzertifikats der Klasse EMT.API des entsprechenden Marktpartners überprüft werden können“ — the record is the provider’s statement, so a record no trusted key of that provider signed says nothing about where its API lives.
Variants§
NoTrustedKey
The caller supplied no key for the provider, so no signature could be checked.
MissingSignature
The response carried no X-BDEW-SIGNATURE, or more than one.
BadSignature
The signature verifies against none of the trusted keys.
WrongEntry
The record names another entry than the one requested.
Fields
TooManyRedirects
The directory redirected more often than the client follows.
Trait Implementations§
Source§impl Clone for RecordRefusal
impl Clone for RecordRefusal
Source§impl Debug for RecordRefusal
impl Debug for RecordRefusal
Source§impl Display for RecordRefusal
impl Display for RecordRefusal
impl Eq for RecordRefusal
Source§impl Error for RecordRefusal
impl Error for RecordRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RecordRefusal
impl PartialEq for RecordRefusal
impl StructuralPartialEq for RecordRefusal
Auto Trait Implementations§
impl Forget for RecordRefusal
impl Freeze for RecordRefusal
impl Move for RecordRefusal
impl RefUnwindSafe for RecordRefusal
impl Send for RecordRefusal
impl Sync for RecordRefusal
impl Unpin for RecordRefusal
impl UnsafeUnpin for RecordRefusal
impl UnwindSafe for RecordRefusal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more