#[non_exhaustive]pub enum MetadataError {
InvalidUi,
Conflict {
path: String,
},
Serialization(Error),
Preparation(Box<dyn Error + Send + Sync>),
}Expand description
Metadata could not be prepared or composed with existing annotations.
Failed composition leaves the destination unchanged, even when a conflict occurs after other fields would otherwise have been inserted.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidUi
The existing root ui value is present but is not an object.
Conflict
A provided field differs from an existing value.
Serialization(Error)
Serialization of a typed declaration failed.
Preparation(Box<dyn Error + Send + Sync>)
A static resource’s metadata factory failed to prepare extension data.
Wrap another SDK’s error here to retain its cause without adding that SDK’s types or validation rules to this library.
Trait Implementations§
Source§impl Debug for MetadataError
impl Debug for MetadataError
Source§impl Display for MetadataError
impl Display for MetadataError
Source§impl Error for MetadataError
impl Error for MetadataError
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 From<Error> for MetadataError
impl From<Error> for MetadataError
Source§impl From<MetadataError> for RegistrationError
impl From<MetadataError> for RegistrationError
Source§fn from(error: MetadataError) -> Self
fn from(error: MetadataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MetadataError
impl !UnwindSafe for MetadataError
impl Freeze for MetadataError
impl Send for MetadataError
impl Sync for MetadataError
impl Unpin for MetadataError
impl UnsafeUnpin for MetadataError
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