pub enum ProviderBindingError {
UnknownBinding(String),
UnknownBackend(String),
UnknownAuth(String),
ProviderMismatch {
binding: String,
backend: Provider,
auth: Provider,
},
UnknownProviderName(String),
}Expand description
Validation / reference-resolution errors for a realm connection set.
The plan originally listed a DuplicateId(String) variant; it’s been
omitted because RealmConfigSection uses BTreeMap<String, ...> for
backends/auth/bindings, so duplicate ids within one category are
impossible at ingestion time. Cross-category id sharing is harmless
(lookups are category-keyed). If a future code path constructs a
RealmConfigSection programmatically and needs duplicate detection,
add the variant back alongside the check.
Variants§
UnknownBinding(String)
UnknownBackend(String)
UnknownAuth(String)
ProviderMismatch
UnknownProviderName(String)
Trait Implementations§
Source§impl Clone for ProviderBindingError
impl Clone for ProviderBindingError
Source§fn clone(&self) -> ProviderBindingError
fn clone(&self) -> ProviderBindingError
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 ProviderBindingError
impl Debug for ProviderBindingError
Source§impl<'de> Deserialize<'de> for ProviderBindingError
impl<'de> Deserialize<'de> for ProviderBindingError
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
Source§impl Display for ProviderBindingError
impl Display for ProviderBindingError
Source§impl Error for ProviderBindingError
impl Error for ProviderBindingError
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 JsonSchema for ProviderBindingError
impl JsonSchema for ProviderBindingError
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProviderBindingError
impl PartialEq for ProviderBindingError
Source§fn eq(&self, other: &ProviderBindingError) -> bool
fn eq(&self, other: &ProviderBindingError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderBindingError
impl Serialize for ProviderBindingError
impl Eq for ProviderBindingError
impl StructuralPartialEq for ProviderBindingError
Auto Trait Implementations§
impl Freeze for ProviderBindingError
impl RefUnwindSafe for ProviderBindingError
impl Send for ProviderBindingError
impl Sync for ProviderBindingError
impl Unpin for ProviderBindingError
impl UnsafeUnpin for ProviderBindingError
impl UnwindSafe for ProviderBindingError
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.