#[non_exhaustive]pub struct TemplateActiveVersionRequest {
pub version: Option<String>,
}
Expand description
Specifies which version of a message template to use as the active version of the template.
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.version: Option<String>
The version of the message template to use as the active version of the template. Valid values are: latest, for the most recent version of the template; or, the unique identifier for any existing version of the template. If you specify an identifier, the value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
Implementations§
source§impl TemplateActiveVersionRequest
impl TemplateActiveVersionRequest
sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
The version of the message template to use as the active version of the template. Valid values are: latest, for the most recent version of the template; or, the unique identifier for any existing version of the template. If you specify an identifier, the value must match the identifier for an existing template version. To retrieve a list of versions and version identifiers for a template, use the Template Versions resource.
source§impl TemplateActiveVersionRequest
impl TemplateActiveVersionRequest
sourcepub fn builder() -> TemplateActiveVersionRequestBuilder
pub fn builder() -> TemplateActiveVersionRequestBuilder
Creates a new builder-style object to manufacture TemplateActiveVersionRequest
.
Trait Implementations§
source§impl Clone for TemplateActiveVersionRequest
impl Clone for TemplateActiveVersionRequest
source§fn clone(&self) -> TemplateActiveVersionRequest
fn clone(&self) -> TemplateActiveVersionRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TemplateActiveVersionRequest
impl Debug for TemplateActiveVersionRequest
source§impl PartialEq for TemplateActiveVersionRequest
impl PartialEq for TemplateActiveVersionRequest
source§fn eq(&self, other: &TemplateActiveVersionRequest) -> bool
fn eq(&self, other: &TemplateActiveVersionRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TemplateActiveVersionRequest
Auto Trait Implementations§
impl Freeze for TemplateActiveVersionRequest
impl RefUnwindSafe for TemplateActiveVersionRequest
impl Send for TemplateActiveVersionRequest
impl Sync for TemplateActiveVersionRequest
impl Unpin for TemplateActiveVersionRequest
impl UnwindSafe for TemplateActiveVersionRequest
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