pub enum RuleDefault {
None,
Bool(bool),
Int(i64),
Num(f64),
Str(&'static str),
}Expand description
Default a field resolves to when the rule omits it (or sets null).
Variants§
None
No default: the field is optional with no effect, or required.
Bool(bool)
Int(i64)
Num(f64)
Str(&'static str)
Trait Implementations§
Source§impl Clone for RuleDefault
impl Clone for RuleDefault
impl Copy for RuleDefault
Source§impl Debug for RuleDefault
impl Debug for RuleDefault
Source§impl PartialEq for RuleDefault
impl PartialEq for RuleDefault
impl StructuralPartialEq for RuleDefault
Auto Trait Implementations§
impl Forget for RuleDefault
impl Freeze for RuleDefault
impl Move for RuleDefault
impl RefUnwindSafe for RuleDefault
impl Send for RuleDefault
impl Sync for RuleDefault
impl Unpin for RuleDefault
impl UnsafeUnpin for RuleDefault
impl UnwindSafe for RuleDefault
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more