pub struct ProviderOptions<'a> { /* private fields */ }Expand description
Builder for provider configuration. Used when registering a provider.
In most cases, you’ll just use the default options.
Implementations§
Source§impl<'a> ProviderOptions<'a>
impl<'a> ProviderOptions<'a>
Sourcepub const fn is_valid_option_value(value: &'a str) -> bool
pub const fn is_valid_option_value(value: &'a str) -> bool
Returns true if the specified string is a valid option value. A valid option value contains only ASCII digits and lowercase ASCII letters.
Sourcepub fn group_name(&mut self, name: &'a str) -> &mut Self
pub fn group_name(&mut self, name: &'a str) -> &mut Self
Sets the name of the provider group that should be set for this provider. Requires: name is a valid option value (contains only ASCII digits and lowercase ASCII letters).
Most providers do not set any provider group so this is usually not called.
Trait Implementations§
Source§impl<'a> Clone for ProviderOptions<'a>
impl<'a> Clone for ProviderOptions<'a>
Source§fn clone(&self) -> ProviderOptions<'a>
fn clone(&self) -> ProviderOptions<'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 ProviderOptions<'a>
impl<'a> Debug for ProviderOptions<'a>
Source§impl<'a> Default for ProviderOptions<'a>
impl<'a> Default for ProviderOptions<'a>
Source§fn default() -> ProviderOptions<'a>
fn default() -> ProviderOptions<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for ProviderOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProviderOptions<'a>
impl<'a> RefUnwindSafe for ProviderOptions<'a>
impl<'a> Send for ProviderOptions<'a>
impl<'a> Sync for ProviderOptions<'a>
impl<'a> Unpin for ProviderOptions<'a>
impl<'a> UnwindSafe for ProviderOptions<'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