pub struct VariableUpdate {
pub action: Action,
pub id: String,
pub name: Option<String>,
pub description: Option<String>,
pub hidden_from_publishing: Option<bool>,
pub scopes: Option<Vec<VariableScope>>,
pub code_syntax: Option<Box<VariableCodeSyntax>>,
}
Expand description
VariableUpdate : An object that contains details about updating a Variable
.
Fields§
§action: Action
The action to perform for the variable.
id: String
The id of the variable to update.
name: Option<String>
The name of this variable.
description: Option<String>
The description of this variable.
Whether this variable is hidden when publishing the current file as a library.
scopes: Option<Vec<VariableScope>>
An array of scopes in the UI where this variable is shown. Setting this property will show/hide this variable in the variable picker UI for different fields.
code_syntax: Option<Box<VariableCodeSyntax>>
Implementations§
Source§impl VariableUpdate
impl VariableUpdate
Sourcepub fn new(action: Action, id: String) -> VariableUpdate
pub fn new(action: Action, id: String) -> VariableUpdate
An object that contains details about updating a Variable
.
Trait Implementations§
Source§impl Clone for VariableUpdate
impl Clone for VariableUpdate
Source§fn clone(&self) -> VariableUpdate
fn clone(&self) -> VariableUpdate
Returns a duplicate of the value. Read more
1.0.0 · 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 VariableUpdate
impl Debug for VariableUpdate
Source§impl Default for VariableUpdate
impl Default for VariableUpdate
Source§fn default() -> VariableUpdate
fn default() -> VariableUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableUpdate
impl<'de> Deserialize<'de> for VariableUpdate
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 VariableUpdate
impl PartialEq for VariableUpdate
Source§impl Serialize for VariableUpdate
impl Serialize for VariableUpdate
impl StructuralPartialEq for VariableUpdate
Auto Trait Implementations§
impl Freeze for VariableUpdate
impl RefUnwindSafe for VariableUpdate
impl Send for VariableUpdate
impl Sync for VariableUpdate
impl Unpin for VariableUpdate
impl UnwindSafe for VariableUpdate
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