pub enum Defaulting<T: Default> {
Default,
Set(T),
}Expand description
Buidler field type when target field implement Default.
Variants§
Default
Builder field value when using Default one.
Set(T)
Builder field value when using provided data.
Implementations§
Trait Implementations§
Source§impl<T: Default> Debug for Defaulting<T>
impl<T: Default> Debug for Defaulting<T>
Source§impl<T: Default> Default for Defaulting<T>
impl<T: Default> Default for Defaulting<T>
Source§fn default() -> Defaulting<T>
fn default() -> Defaulting<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for Defaulting<T>where
T: Freeze,
impl<T> RefUnwindSafe for Defaulting<T>where
T: RefUnwindSafe,
impl<T> Send for Defaulting<T>where
T: Send,
impl<T> Sync for Defaulting<T>where
T: Sync,
impl<T> Unpin for Defaulting<T>where
T: Unpin,
impl<T> UnwindSafe for Defaulting<T>where
T: UnwindSafe,
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