pub struct UpdateVariableOption {
pub name: Option<String>,
pub value: String,
}
Expand description
UpdateVariableOption : UpdateVariableOption the option when updating variable
Fields§
§name: Option<String>
New name for the variable. If the field is empty, the variable name won’t be updated.
value: String
Value of the variable to update
Implementations§
Source§impl UpdateVariableOption
impl UpdateVariableOption
Sourcepub fn new(value: String) -> UpdateVariableOption
pub fn new(value: String) -> UpdateVariableOption
UpdateVariableOption the option when updating variable
Trait Implementations§
Source§impl Clone for UpdateVariableOption
impl Clone for UpdateVariableOption
Source§fn clone(&self) -> UpdateVariableOption
fn clone(&self) -> UpdateVariableOption
Returns a copy 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 UpdateVariableOption
impl Debug for UpdateVariableOption
Source§impl Default for UpdateVariableOption
impl Default for UpdateVariableOption
Source§fn default() -> UpdateVariableOption
fn default() -> UpdateVariableOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateVariableOption
impl<'de> Deserialize<'de> for UpdateVariableOption
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 UpdateVariableOption
impl PartialEq for UpdateVariableOption
Source§impl Serialize for UpdateVariableOption
impl Serialize for UpdateVariableOption
impl StructuralPartialEq for UpdateVariableOption
Auto Trait Implementations§
impl Freeze for UpdateVariableOption
impl RefUnwindSafe for UpdateVariableOption
impl Send for UpdateVariableOption
impl Sync for UpdateVariableOption
impl Unpin for UpdateVariableOption
impl UnwindSafe for UpdateVariableOption
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