#[non_exhaustive]pub struct ReferenceMismatchError {
pub expected_platform: String,
pub expected_resource: String,
pub actual_platform: String,
pub actual_resource: String,
}Expand description
A social URL for a different resource than the selector it was given to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expected_platform: StringPlatform of the selector.
expected_resource: StringResource of the selector.
actual_platform: StringPlatform the URL belongs to.
actual_resource: StringResource the URL represents.
Trait Implementations§
Source§impl Clone for ReferenceMismatchError
impl Clone for ReferenceMismatchError
Source§impl Debug for ReferenceMismatchError
impl Debug for ReferenceMismatchError
Source§impl Display for ReferenceMismatchError
impl Display for ReferenceMismatchError
impl Eq for ReferenceMismatchError
Source§impl Error for ReferenceMismatchError
impl Error for ReferenceMismatchError
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 From<ReferenceMismatchError> for Error
impl From<ReferenceMismatchError> for Error
Source§fn from(error: ReferenceMismatchError) -> Self
fn from(error: ReferenceMismatchError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReferenceMismatchError
impl PartialEq for ReferenceMismatchError
impl StructuralPartialEq for ReferenceMismatchError
Auto Trait Implementations§
impl Forget for ReferenceMismatchError
impl Freeze for ReferenceMismatchError
impl Move for ReferenceMismatchError
impl RefUnwindSafe for ReferenceMismatchError
impl Send for ReferenceMismatchError
impl Sync for ReferenceMismatchError
impl Unpin for ReferenceMismatchError
impl UnsafeUnpin for ReferenceMismatchError
impl UnwindSafe for ReferenceMismatchError
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.