#[non_exhaustive]pub struct ProvideRuleError<'a> {
pub detail: Option<Cow<'a, str>>,
pub key: Option<Key<'a>>,
}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.detail: Option<Cow<'a, str>>§key: Option<Key<'a>>Implementations§
Trait Implementations§
Source§impl<'a> Clone for ProvideRuleError<'a>
impl<'a> Clone for ProvideRuleError<'a>
Source§fn clone(&self) -> ProvideRuleError<'a>
fn clone(&self) -> ProvideRuleError<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ProvideRuleError<'a>
impl<'a> Debug for ProvideRuleError<'a>
Source§impl<'a> Default for ProvideRuleError<'a>
impl<'a> Default for ProvideRuleError<'a>
Source§fn default() -> ProvideRuleError<'a>
fn default() -> ProvideRuleError<'a>
Returns the “default value” for a type. Read more
Source§impl Display for ProvideRuleError<'_>
impl Display for ProvideRuleError<'_>
Source§impl<'a> From<&'a str> for ProvideRuleError<'a>
impl<'a> From<&'a str> for ProvideRuleError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProvideRuleError<'a>
impl<'a> RefUnwindSafe for ProvideRuleError<'a>
impl<'a> Send for ProvideRuleError<'a>
impl<'a> Sync for ProvideRuleError<'a>
impl<'a> Unpin for ProvideRuleError<'a>
impl<'a> UnwindSafe for ProvideRuleError<'a>
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