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 ==
.impl StructuralPartialEq for TaskTemplateConstraints
Auto Trait Implementations§
impl Freeze for TaskTemplateConstraints
impl RefUnwindSafe for TaskTemplateConstraints
impl Send for TaskTemplateConstraints
impl Sync for TaskTemplateConstraints
impl Unpin for TaskTemplateConstraints
impl UnwindSafe for TaskTemplateConstraints
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more