#[non_exhaustive]pub struct UpdateRuleVersionInput {
pub rule: Option<Rule>,
pub description: Option<String>,
pub expression: Option<String>,
pub language: Option<Language>,
pub outcomes: Option<Vec<String>>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.rule: Option<Rule>
The rule to update.
description: Option<String>
The description.
expression: Option<String>
The rule expression.
language: Option<Language>
The language.
outcomes: Option<Vec<String>>
The outcomes.
The tags to assign to the rule version.
Implementations§
source§impl UpdateRuleVersionInput
impl UpdateRuleVersionInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
The rule expression.
sourcepub fn outcomes(&self) -> &[String]
pub fn outcomes(&self) -> &[String]
The outcomes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .outcomes.is_none()
.
The tags to assign to the rule version.
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 UpdateRuleVersionInput
impl UpdateRuleVersionInput
sourcepub fn builder() -> UpdateRuleVersionInputBuilder
pub fn builder() -> UpdateRuleVersionInputBuilder
Creates a new builder-style object to manufacture UpdateRuleVersionInput
.
Trait Implementations§
source§impl Clone for UpdateRuleVersionInput
impl Clone for UpdateRuleVersionInput
source§fn clone(&self) -> UpdateRuleVersionInput
fn clone(&self) -> UpdateRuleVersionInput
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 UpdateRuleVersionInput
impl Debug for UpdateRuleVersionInput
source§impl PartialEq for UpdateRuleVersionInput
impl PartialEq for UpdateRuleVersionInput
source§fn eq(&self, other: &UpdateRuleVersionInput) -> bool
fn eq(&self, other: &UpdateRuleVersionInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateRuleVersionInput
Auto Trait Implementations§
impl Freeze for UpdateRuleVersionInput
impl RefUnwindSafe for UpdateRuleVersionInput
impl Send for UpdateRuleVersionInput
impl Sync for UpdateRuleVersionInput
impl Unpin for UpdateRuleVersionInput
impl UnwindSafe for UpdateRuleVersionInput
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
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>
Creates a shared type from an unshared type.