pub struct EnvVarView {
pub name: String,
pub kind: EnvKindView,
pub prompt: Option<String>,
pub format: String,
pub generated: bool,
pub value_empty: bool,
}Expand description
One env var as a form renders it: enough to label it, decide whether it needs input, and show whether the value is auto-generated.
Fields§
§name: String§kind: EnvKindView§prompt: Option<String>§format: StringValue format: “string”, “hex”, “base64”, “base64_url”, “uuid”, “jwt_hs256”.
generated: boolThe value comes from a {{secret.*}} template, so it’s auto-generated.
value_empty: boolThe declared value is empty (a prompted var with no default needs input).
Trait Implementations§
Source§impl Clone for EnvVarView
impl Clone for EnvVarView
Source§fn clone(&self) -> EnvVarView
fn clone(&self) -> EnvVarView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvVarView
impl Debug for EnvVarView
Source§impl<'de> Deserialize<'de> for EnvVarView
impl<'de> Deserialize<'de> for EnvVarView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnvVarView
impl RefUnwindSafe for EnvVarView
impl Send for EnvVarView
impl Sync for EnvVarView
impl Unpin for EnvVarView
impl UnsafeUnpin for EnvVarView
impl UnwindSafe for EnvVarView
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