pub struct CreateVariable {
pub path: String,
pub value: String,
pub is_secret: bool,
pub description: String,
pub account: Option<i32>,
pub is_oauth: Option<bool>,
pub expires_at: Option<String>,
pub value_valid_until: Option<String>,
pub labels: Option<Vec<String>>,
pub ws_specific: Option<bool>,
}Fields§
§path: StringThe path to the variable
value: StringThe value of the variable
is_secret: boolWhether the variable is a secret
description: StringThe description of the variable
account: Option<i32>Ignored. A variable is linked to an OAuth account only when createAccount creates both.
is_oauth: Option<bool>Whether the variable is an OAuth variable
expires_at: Option<String>When to garbage-collect the variable. Used for ephemeral secrets; the variable is deleted once this is reached. Not the value’s expiry — see value_valid_until.
value_valid_until: Option<String>When the value stored in this variable stops working. Triggers the workspace’s variable expiration handler ahead of it, by the handler’s notify_before_secs (1 day by default); never causes the variable to be deleted.
labels: Option<Vec<String>>§ws_specific: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for CreateVariable
impl Clone for CreateVariable
Source§impl Debug for CreateVariable
impl Debug for CreateVariable
Source§impl Default for CreateVariable
impl Default for CreateVariable
Source§impl<'de> Deserialize<'de> for CreateVariable
impl<'de> Deserialize<'de> for CreateVariable
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
Source§impl PartialEq for CreateVariable
impl PartialEq for CreateVariable
Source§impl Serialize for CreateVariable
impl Serialize for CreateVariable
impl StructuralPartialEq for CreateVariable
Auto Trait Implementations§
impl Freeze for CreateVariable
impl RefUnwindSafe for CreateVariable
impl Send for CreateVariable
impl Sync for CreateVariable
impl Unpin for CreateVariable
impl UnsafeUnpin for CreateVariable
impl UnwindSafe for CreateVariable
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