pub struct Variable {Show 18 fields
pub name: String,
pub kind: VarKind,
pub label: String,
pub description: String,
pub default: Option<String>,
pub value: Option<String>,
pub required: Option<bool>,
pub length: Option<u32>,
pub bytes: Option<u32>,
pub choices: Vec<String>,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub min: Option<i64>,
pub max: Option<i64>,
pub secret: Option<bool>,
pub jwt: Option<JwtSpec>,
pub at: Option<String>,
pub unit: Option<String>,
}Fields§
§name: String[a-z][a-z0-9_]*.
kind: VarKind§label: String§description: String§default: Option<String>Used when the deployer gives nothing; may use ${...}.
value: Option<String>A computed value (${...} over other variables); not an input.
required: Option<bool>Must the deployer give it? Default: a text variable without a default.
length: Option<u32>§bytes: Option<u32>§choices: Vec<String>§min_length: Option<u32>§max_length: Option<u32>§min: Option<i64>§max: Option<i64>§secret: Option<bool>Stored as an org secret. Default: passwords, keys and JWTs.
jwt: Option<JwtSpec>§at: Option<String>Timestamp: a date instead of now (2030-01-01T00:00:00Z).
unit: Option<String>Timestamp: s (default) or ms.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variable
impl<'de> Deserialize<'de> for Variable
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
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.