pub struct ConfigBuilderBuilder<T> { /* private fields */ }Implementations§
Source§impl<T> ConfigBuilderBuilder<T>
impl<T> ConfigBuilderBuilder<T>
pub fn new() -> Self
pub fn fields(self, value: Vec<ConfigField>) -> Self
pub fn name(self, value: Option<String>) -> Self
pub fn _phantom(self, value: PhantomData<T>) -> Self
pub fn build(self) -> Result<ConfigBuilder<T>, BuildError>
pub fn build_with_defaults(self) -> Result<ConfigBuilder<T>, BuildError>
Source§impl<T> ConfigBuilderBuilder<T>
impl<T> ConfigBuilderBuilder<T>
Sourcepub fn add_field(self, field: ConfigField) -> Self
pub fn add_field(self, field: ConfigField) -> Self
Add a configuration field
Sourcepub fn add_string_field(self, name: impl Into<String>) -> Self
pub fn add_string_field(self, name: impl Into<String>) -> Self
Add a string field
Sourcepub fn add_required_string_field(self, name: impl Into<String>) -> Self
pub fn add_required_string_field(self, name: impl Into<String>) -> Self
Add a required string field
Sourcepub fn add_int_field(self, name: impl Into<String>) -> Self
pub fn add_int_field(self, name: impl Into<String>) -> Self
Add an integer field
Sourcepub fn add_bool_field(self, name: impl Into<String>) -> Self
pub fn add_bool_field(self, name: impl Into<String>) -> Self
Add a boolean field
Sourcepub fn add_url_field(self, name: impl Into<String>) -> Self
pub fn add_url_field(self, name: impl Into<String>) -> Self
Add a URL field
Auto Trait Implementations§
impl<T> Freeze for ConfigBuilderBuilder<T>
impl<T> RefUnwindSafe for ConfigBuilderBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for ConfigBuilderBuilder<T>where
T: Send,
impl<T> Sync for ConfigBuilderBuilder<T>where
T: Sync,
impl<T> Unpin for ConfigBuilderBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for ConfigBuilderBuilder<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