pub enum SearchAttributeError {
ConflictingType {
name: String,
existing: SearchAttributeType,
requested: SearchAttributeType,
},
UnregisteredAttribute {
name: String,
},
TypeMismatch {
name: String,
expected: SearchAttributeType,
actual: SearchAttributeType,
},
}Expand description
Errors produced when registering and validating typed search attributes.
Variants§
ConflictingType
A name was registered more than once with incompatible types.
Fields
§
existing: SearchAttributeTypeExisting declared type.
§
requested: SearchAttributeTypeRequested incompatible type.
UnregisteredAttribute
A value was validated for an attribute name that is not registered.
TypeMismatch
A value’s concrete type did not match the registered type.
Fields
§
expected: SearchAttributeTypeRegistered expected type.
§
actual: SearchAttributeTypeActual type derived from the supplied value.
Trait Implementations§
Source§impl Clone for SearchAttributeError
impl Clone for SearchAttributeError
Source§fn clone(&self) -> SearchAttributeError
fn clone(&self) -> SearchAttributeError
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 SearchAttributeError
impl Debug for SearchAttributeError
Source§impl Display for SearchAttributeError
impl Display for SearchAttributeError
impl Eq for SearchAttributeError
Source§impl Error for SearchAttributeError
impl Error for SearchAttributeError
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 SearchAttributeError
impl PartialEq for SearchAttributeError
Source§fn eq(&self, other: &SearchAttributeError) -> bool
fn eq(&self, other: &SearchAttributeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchAttributeError
Auto Trait Implementations§
impl Freeze for SearchAttributeError
impl RefUnwindSafe for SearchAttributeError
impl Send for SearchAttributeError
impl Sync for SearchAttributeError
impl Unpin for SearchAttributeError
impl UnsafeUnpin for SearchAttributeError
impl UnwindSafe for SearchAttributeError
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