Struct aws_sdk_connect::types::TaskTemplateConstraints
source · #[non_exhaustive]pub struct TaskTemplateConstraints {
pub required_fields: Option<Vec<RequiredFieldInfo>>,
pub read_only_fields: Option<Vec<ReadOnlyFieldInfo>>,
pub invisible_fields: Option<Vec<InvisibleFieldInfo>>,
}
Expand description
Describes constraints that apply to the template fields.
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.required_fields: Option<Vec<RequiredFieldInfo>>
Lists the fields that are required to be filled by agents.
read_only_fields: Option<Vec<ReadOnlyFieldInfo>>
Lists the fields that are read-only to agents, and cannot be edited.
invisible_fields: Option<Vec<InvisibleFieldInfo>>
Lists the fields that are invisible to agents.
Implementations§
source§impl TaskTemplateConstraints
impl TaskTemplateConstraints
sourcepub fn required_fields(&self) -> &[RequiredFieldInfo]
pub fn required_fields(&self) -> &[RequiredFieldInfo]
Lists the fields that are required to be filled by agents.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .required_fields.is_none()
.
sourcepub fn read_only_fields(&self) -> &[ReadOnlyFieldInfo]
pub fn read_only_fields(&self) -> &[ReadOnlyFieldInfo]
Lists the fields that are read-only to agents, and cannot be edited.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .read_only_fields.is_none()
.
sourcepub fn invisible_fields(&self) -> &[InvisibleFieldInfo]
pub fn invisible_fields(&self) -> &[InvisibleFieldInfo]
Lists the fields that are invisible to agents.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .invisible_fields.is_none()
.
source§impl TaskTemplateConstraints
impl TaskTemplateConstraints
sourcepub fn builder() -> TaskTemplateConstraintsBuilder
pub fn builder() -> TaskTemplateConstraintsBuilder
Creates a new builder-style object to manufacture TaskTemplateConstraints
.
Trait Implementations§
source§impl Clone for TaskTemplateConstraints
impl Clone for TaskTemplateConstraints
source§fn clone(&self) -> TaskTemplateConstraints
fn clone(&self) -> TaskTemplateConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskTemplateConstraints
impl Debug for TaskTemplateConstraints
source§impl PartialEq for TaskTemplateConstraints
impl PartialEq for TaskTemplateConstraints
source§fn eq(&self, other: &TaskTemplateConstraints) -> bool
fn eq(&self, other: &TaskTemplateConstraints) -> bool
self
and other
values to be equal, and is used
by ==
.