more-options 3.4.0

Provides support for options
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Ref, Value};

/// Defines the behavior for a snapshot of configuration [`Options`](crate::Options).
#[cfg_attr(feature = "async", maybe_impl::traits(Send, Sync))]
pub trait OptionsSnapshot<T: Value> {
    /// Gets the configuration options with the specified name.
    ///
    /// # Arguments
    ///
    /// * `name` - The optional name of the options to retrieve
    fn get(&self, name: Option<&str>) -> Ref<T>;
}