pub enum OpaqueReason {
FromType,
TryFromType,
Remote,
CustomDeserializer,
Unsupported,
}Expand description
Reason a shape cannot be represented precisely.
Variants§
FromType
The type uses #[serde(from = "...")].
TryFromType
The type uses #[serde(try_from = "...")].
Remote
The type uses #[serde(remote = "...")].
CustomDeserializer
A custom deserializer controls the input.
Unsupported
The type has no built-in shape implementation.
Trait Implementations§
Source§impl Clone for OpaqueReason
impl Clone for OpaqueReason
Source§fn clone(&self) -> OpaqueReason
fn clone(&self) -> OpaqueReason
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 moreimpl Copy for OpaqueReason
Source§impl Debug for OpaqueReason
impl Debug for OpaqueReason
impl Eq for OpaqueReason
Source§impl PartialEq for OpaqueReason
impl PartialEq for OpaqueReason
Source§fn eq(&self, other: &OpaqueReason) -> bool
fn eq(&self, other: &OpaqueReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpaqueReason
Auto Trait Implementations§
impl Freeze for OpaqueReason
impl RefUnwindSafe for OpaqueReason
impl Send for OpaqueReason
impl Sync for OpaqueReason
impl Unpin for OpaqueReason
impl UnsafeUnpin for OpaqueReason
impl UnwindSafe for OpaqueReason
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