pub enum MetadataValueError {
Empty {
field: &'static str,
},
InvalidUrl,
InvalidImageDimensions,
}Expand description
Error returned by metadata primitive constructors.
Variants§
Empty
The supplied value was empty after trimming whitespace.
InvalidUrl
The URL did not look like an HTTP or HTTPS URL.
InvalidImageDimensions
Image dimensions must be non-zero.
Trait Implementations§
Source§impl Clone for MetadataValueError
impl Clone for MetadataValueError
Source§fn clone(&self) -> MetadataValueError
fn clone(&self) -> MetadataValueError
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 MetadataValueError
impl Debug for MetadataValueError
Source§impl Display for MetadataValueError
impl Display for MetadataValueError
Source§impl Error for MetadataValueError
impl Error for MetadataValueError
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 MetadataValueError
impl PartialEq for MetadataValueError
Source§fn eq(&self, other: &MetadataValueError) -> bool
fn eq(&self, other: &MetadataValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MetadataValueError
impl Eq for MetadataValueError
impl StructuralPartialEq for MetadataValueError
Auto Trait Implementations§
impl Freeze for MetadataValueError
impl RefUnwindSafe for MetadataValueError
impl Send for MetadataValueError
impl Sync for MetadataValueError
impl Unpin for MetadataValueError
impl UnsafeUnpin for MetadataValueError
impl UnwindSafe for MetadataValueError
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