#[non_exhaustive]pub struct UpdateListInput {
pub name: Option<String>,
pub elements: Option<Vec<String>>,
pub description: Option<String>,
pub update_mode: Option<ListUpdateMode>,
pub variable_type: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the list to update.
elements: Option<Vec<String>>
One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
description: Option<String>
The new description.
update_mode: Option<ListUpdateMode>
The update mode (type).
-
Use
APPEND
if you are adding elements to the list. -
Use
REPLACE
if you replacing existing elements in the list. -
Use
REMOVE
if you are removing elements from the list.
variable_type: Option<String>
The variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
Implementations§
source§impl UpdateListInput
impl UpdateListInput
sourcepub fn elements(&self) -> &[String]
pub fn elements(&self) -> &[String]
One or more list elements to add or replace. If you are providing the elements, make sure to specify the updateMode
to use.
If you are deleting all elements from the list, use REPLACE
for the updateMode
and provide an empty list (0 elements).
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .elements.is_none()
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The new description.
sourcepub fn update_mode(&self) -> Option<&ListUpdateMode>
pub fn update_mode(&self) -> Option<&ListUpdateMode>
The update mode (type).
-
Use
APPEND
if you are adding elements to the list. -
Use
REPLACE
if you replacing existing elements in the list. -
Use
REMOVE
if you are removing elements from the list.
sourcepub fn variable_type(&self) -> Option<&str>
pub fn variable_type(&self) -> Option<&str>
The variable type you want to assign to the list.
You cannot update a variable type of a list that already has a variable type assigned to it. You can assign a variable type to a list only if the list does not already have a variable type.
source§impl UpdateListInput
impl UpdateListInput
sourcepub fn builder() -> UpdateListInputBuilder
pub fn builder() -> UpdateListInputBuilder
Creates a new builder-style object to manufacture UpdateListInput
.
Trait Implementations§
source§impl Clone for UpdateListInput
impl Clone for UpdateListInput
source§fn clone(&self) -> UpdateListInput
fn clone(&self) -> UpdateListInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateListInput
impl Debug for UpdateListInput
source§impl PartialEq for UpdateListInput
impl PartialEq for UpdateListInput
source§fn eq(&self, other: &UpdateListInput) -> bool
fn eq(&self, other: &UpdateListInput) -> bool
self
and other
values to be equal, and is used
by ==
.