pub struct EnvVar {
pub name: String,
pub doc: Vec<String>,
pub default: Option<String>,
}Expand description
One environment variable the embedded server reads.
Fields§
§name: String§doc: Vec<String>Comment lines attached to the entry, in template order.
default: Option<String>The value the template ships. None when the entry is commented
out — the knob exists, the server runs without it.
Implementations§
Trait Implementations§
impl Eq for EnvVar
impl StructuralPartialEq for EnvVar
Auto Trait Implementations§
impl Freeze for EnvVar
impl RefUnwindSafe for EnvVar
impl Send for EnvVar
impl Sync for EnvVar
impl Unpin for EnvVar
impl UnsafeUnpin for EnvVar
impl UnwindSafe for EnvVar
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