#[non_exhaustive]pub struct CreateListInput {
pub name: Option<String>,
pub elements: Option<Vec<String>>,
pub variable_type: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
}
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.
elements: Option<Vec<String>>
The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
variable_type: Option<String>
The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
description: Option<String>
The description of the list.
A collection of the key and value pairs.
Implementations§
source§impl CreateListInput
impl CreateListInput
sourcepub fn elements(&self) -> &[String]
pub fn elements(&self) -> &[String]
The names of the elements, if providing. You can also create an empty list and add elements later using the UpdateList API.
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 variable_type(&self) -> Option<&str>
pub fn variable_type(&self) -> Option<&str>
The variable type of the list. You can only assign the variable type with String data type. For more information, see Variable types.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the list.
A collection of the key and value pairs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateListInput
impl CreateListInput
sourcepub fn builder() -> CreateListInputBuilder
pub fn builder() -> CreateListInputBuilder
Creates a new builder-style object to manufacture CreateListInput
.
Trait Implementations§
source§impl Clone for CreateListInput
impl Clone for CreateListInput
source§fn clone(&self) -> CreateListInput
fn clone(&self) -> CreateListInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateListInput
impl Debug for CreateListInput
source§impl PartialEq for CreateListInput
impl PartialEq for CreateListInput
source§fn eq(&self, other: &CreateListInput) -> bool
fn eq(&self, other: &CreateListInput) -> bool
self
and other
values to be equal, and is used
by ==
.