#[non_exhaustive]pub enum MissingParameterPolicy {
Fail,
TypeDefault,
}Expand description
Closed behavior when a mapping source is absent.
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.
Fail
Missing data rejects the complete mapping.
TypeDefault
Use the non-sensitive zero/empty value of the declared target kind.
This is deliberately not an arbitrary literal default: user values stay out of manifests and fingerprints.
Implementations§
Trait Implementations§
Source§impl Clone for MissingParameterPolicy
impl Clone for MissingParameterPolicy
impl Copy for MissingParameterPolicy
Source§impl Debug for MissingParameterPolicy
impl Debug for MissingParameterPolicy
Source§impl Default for MissingParameterPolicy
impl Default for MissingParameterPolicy
impl Eq for MissingParameterPolicy
Source§impl Hash for MissingParameterPolicy
impl Hash for MissingParameterPolicy
Source§impl Ord for MissingParameterPolicy
impl Ord for MissingParameterPolicy
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MissingParameterPolicy
impl PartialEq for MissingParameterPolicy
Source§impl PartialOrd for MissingParameterPolicy
impl PartialOrd for MissingParameterPolicy
impl StructuralPartialEq for MissingParameterPolicy
Auto Trait Implementations§
impl Forget for MissingParameterPolicy
impl Freeze for MissingParameterPolicy
impl Move for MissingParameterPolicy
impl RefUnwindSafe for MissingParameterPolicy
impl Send for MissingParameterPolicy
impl Sync for MissingParameterPolicy
impl Unpin for MissingParameterPolicy
impl UnsafeUnpin for MissingParameterPolicy
impl UnwindSafe for MissingParameterPolicy
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