#[non_exhaustive]pub struct CreateServiceInstanceInput {
pub name: Option<String>,
pub service_name: Option<String>,
pub spec: Option<String>,
pub template_major_version: Option<String>,
pub template_minor_version: Option<String>,
pub tags: Option<Vec<Tag>>,
pub client_token: Option<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.name: Option<String>
The name of the service instance to create.
service_name: Option<String>
The name of the service the service instance is added to.
spec: Option<String>
The spec for the service instance you want to create.
template_major_version: Option<String>
To create a new major and minor version of the service template, exclude major Version
.
template_minor_version: Option<String>
To create a new minor version of the service template, include a major Version
.
An optional list of metadata items that you can associate with the Proton service instance. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
client_token: Option<String>
The client token of the service instance to create.
Implementations§
source§impl CreateServiceInstanceInput
impl CreateServiceInstanceInput
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service the service instance is added to.
sourcepub fn template_major_version(&self) -> Option<&str>
pub fn template_major_version(&self) -> Option<&str>
To create a new major and minor version of the service template, exclude major Version
.
sourcepub fn template_minor_version(&self) -> Option<&str>
pub fn template_minor_version(&self) -> Option<&str>
To create a new minor version of the service template, include a major Version
.
An optional list of metadata items that you can associate with the Proton service instance. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
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()
.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
The client token of the service instance to create.
source§impl CreateServiceInstanceInput
impl CreateServiceInstanceInput
sourcepub fn builder() -> CreateServiceInstanceInputBuilder
pub fn builder() -> CreateServiceInstanceInputBuilder
Creates a new builder-style object to manufacture CreateServiceInstanceInput
.
Trait Implementations§
source§impl Clone for CreateServiceInstanceInput
impl Clone for CreateServiceInstanceInput
source§fn clone(&self) -> CreateServiceInstanceInput
fn clone(&self) -> CreateServiceInstanceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateServiceInstanceInput
impl Debug for CreateServiceInstanceInput
source§impl PartialEq for CreateServiceInstanceInput
impl PartialEq for CreateServiceInstanceInput
source§fn eq(&self, other: &CreateServiceInstanceInput) -> bool
fn eq(&self, other: &CreateServiceInstanceInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateServiceInstanceInput
Auto Trait Implementations§
impl Freeze for CreateServiceInstanceInput
impl RefUnwindSafe for CreateServiceInstanceInput
impl Send for CreateServiceInstanceInput
impl Sync for CreateServiceInstanceInput
impl Unpin for CreateServiceInstanceInput
impl UnwindSafe for CreateServiceInstanceInput
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