pub struct DefaultOptionsFactory<T: Value + Default> { /* private fields */ }
Expand description
Represents the default factory used to create configuration Options
.
Implementations§
Source§impl<T: Value + Default> DefaultOptionsFactory<T>
impl<T: Value + Default> DefaultOptionsFactory<T>
Sourcepub fn new(
configurations: Vec<Ref<dyn ConfigureOptions<T>>>,
post_configurations: Vec<Ref<dyn PostConfigureOptions<T>>>,
validations: Vec<Ref<dyn ValidateOptions<T>>>,
) -> Self
pub fn new( configurations: Vec<Ref<dyn ConfigureOptions<T>>>, post_configurations: Vec<Ref<dyn PostConfigureOptions<T>>>, validations: Vec<Ref<dyn ValidateOptions<T>>>, ) -> Self
Initializes a new options factory.
§Arguments
configurations
- The configurations used to configure options.post_configurations
- The configurations used to post-configure options.validations
- The validations used to validate options.
Trait Implementations§
Source§impl<T: Default + Value + Default> Default for DefaultOptionsFactory<T>
impl<T: Default + Value + Default> Default for DefaultOptionsFactory<T>
Source§fn default() -> DefaultOptionsFactory<T>
fn default() -> DefaultOptionsFactory<T>
Returns the “default value” for a type. Read more
Source§impl<T: Value + Default> OptionsFactory<T> for DefaultOptionsFactory<T>
impl<T: Value + Default> OptionsFactory<T> for DefaultOptionsFactory<T>
impl<T: Send + Sync + Default> Send for DefaultOptionsFactory<T>
impl<T: Send + Sync + Default> Sync for DefaultOptionsFactory<T>
Auto Trait Implementations§
impl<T> Freeze for DefaultOptionsFactory<T>
impl<T> !RefUnwindSafe for DefaultOptionsFactory<T>
impl<T> Unpin for DefaultOptionsFactory<T>
impl<T> !UnwindSafe for DefaultOptionsFactory<T>
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