pub struct EnvOptions {
pub allow: Option<Vec<String>>,
pub mode: RunMode,
}Expand description
Read policy for the nitr.env builtin.
The builtin itself is opt-in ([std] features); this narrows what an
enabled one may see. NITR_* variables are hidden from scripts
unconditionally — they configure the server, not the application.
Fields§
§allow: Option<Vec<String>>Names scripts may read: exact names, or prefixes written with a
trailing _ ("APP_"). None allows every non-NITR_* variable.
mode: RunModeWhat the process is doing, as nitr.env.mode reports it and as
nitr.env.secret decides whether a development fallback applies.
Trait Implementations§
Source§impl Clone for EnvOptions
impl Clone for EnvOptions
Source§impl Debug for EnvOptions
impl Debug for EnvOptions
Auto Trait Implementations§
impl Freeze for EnvOptions
impl RefUnwindSafe for EnvOptions
impl Send for EnvOptions
impl Sync for EnvOptions
impl Unpin for EnvOptions
impl UnsafeUnpin for EnvOptions
impl UnwindSafe for EnvOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more