#[non_exhaustive]pub struct CreateRecipeInput {
pub description: Option<String>,
pub name: Option<String>,
pub steps: Option<Vec<RecipeStep>>,
pub tags: Option<HashMap<String, 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.description: Option<String>
A description for the recipe.
name: Option<String>
A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
steps: Option<Vec<RecipeStep>>
An array containing the steps to be performed by the recipe. Each recipe step consists of one recipe action and (optionally) an array of condition expressions.
Metadata tags to apply to this recipe.
Implementations§
source§impl CreateRecipeInput
impl CreateRecipeInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the recipe.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
sourcepub fn steps(&self) -> &[RecipeStep]
pub fn steps(&self) -> &[RecipeStep]
An array containing the steps to be performed by the recipe. Each recipe step consists of one recipe action and (optionally) an array of condition expressions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .steps.is_none()
.
Metadata tags to apply to this recipe.
source§impl CreateRecipeInput
impl CreateRecipeInput
sourcepub fn builder() -> CreateRecipeInputBuilder
pub fn builder() -> CreateRecipeInputBuilder
Creates a new builder-style object to manufacture CreateRecipeInput
.
Trait Implementations§
source§impl Clone for CreateRecipeInput
impl Clone for CreateRecipeInput
source§fn clone(&self) -> CreateRecipeInput
fn clone(&self) -> CreateRecipeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRecipeInput
impl Debug for CreateRecipeInput
source§impl PartialEq for CreateRecipeInput
impl PartialEq for CreateRecipeInput
impl StructuralPartialEq for CreateRecipeInput
Auto Trait Implementations§
impl Freeze for CreateRecipeInput
impl RefUnwindSafe for CreateRecipeInput
impl Send for CreateRecipeInput
impl Sync for CreateRecipeInput
impl Unpin for CreateRecipeInput
impl UnwindSafe for CreateRecipeInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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