pub struct FieldResolveOptions<'a, T> {
pub env: Option<&'a str>,
pub toml: Option<&'a Table>,
pub key: &'a str,
pub default: T,
}Expand description
Inputs used to resolve a single read-only config field.
Fields§
§env: Option<&'a str>§toml: Option<&'a Table>§key: &'a str§default: TAuto Trait Implementations§
impl<'a, T> Freeze for FieldResolveOptions<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for FieldResolveOptions<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FieldResolveOptions<'a, T>where
T: Send,
impl<'a, T> Sync for FieldResolveOptions<'a, T>where
T: Sync,
impl<'a, T> Unpin for FieldResolveOptions<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for FieldResolveOptions<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for FieldResolveOptions<'a, 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