pub struct VariableCreate {
pub action: Action,
pub id: Option<String>,
pub name: String,
pub variable_collection_id: String,
pub resolved_type: ResolvedType,
pub description: Option<String>,
pub hidden_from_publishing: Option<bool>,
pub scopes: Option<Vec<VariableScope>>,
pub code_syntax: Option<Box<VariableCodeSyntax>>,
}
Expand description
VariableCreate : An object that contains details about creating a Variable
.
Fields§
§action: Action
The action to perform for the variable.
id: Option<String>
A temporary id for this variable.
name: String
The name of this variable.
variable_collection_id: String
The variable collection that will contain the variable. You can use the temporary id of a variable collection.
resolved_type: ResolvedType
The resolved type of the 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 VariableCreate
impl VariableCreate
Sourcepub fn new(
action: Action,
name: String,
variable_collection_id: String,
resolved_type: ResolvedType,
) -> VariableCreate
pub fn new( action: Action, name: String, variable_collection_id: String, resolved_type: ResolvedType, ) -> VariableCreate
An object that contains details about creating a Variable
.
Trait Implementations§
Source§impl Clone for VariableCreate
impl Clone for VariableCreate
Source§fn clone(&self) -> VariableCreate
fn clone(&self) -> VariableCreate
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 VariableCreate
impl Debug for VariableCreate
Source§impl Default for VariableCreate
impl Default for VariableCreate
Source§fn default() -> VariableCreate
fn default() -> VariableCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableCreate
impl<'de> Deserialize<'de> for VariableCreate
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 VariableCreate
impl PartialEq for VariableCreate
Source§impl Serialize for VariableCreate
impl Serialize for VariableCreate
impl StructuralPartialEq for VariableCreate
Auto Trait Implementations§
impl Freeze for VariableCreate
impl RefUnwindSafe for VariableCreate
impl Send for VariableCreate
impl Sync for VariableCreate
impl Unpin for VariableCreate
impl UnwindSafe for VariableCreate
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