#[non_exhaustive]pub struct DateTimeParameterBuilder { /* private fields */ }Expand description
A builder for DateTimeParameter.
Implementations§
source§impl DateTimeParameterBuilder
impl DateTimeParameterBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A display name for the date-time parameter.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A display name for the date-time parameter.
sourcepub fn values(self, input: DateTime) -> Self
pub fn values(self, input: DateTime) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
The values for the date-time parameter.
sourcepub fn set_values(self, input: Option<Vec<DateTime>>) -> Self
pub fn set_values(self, input: Option<Vec<DateTime>>) -> Self
The values for the date-time parameter.
sourcepub fn get_values(&self) -> &Option<Vec<DateTime>>
pub fn get_values(&self) -> &Option<Vec<DateTime>>
The values for the date-time parameter.
sourcepub fn build(self) -> Result<DateTimeParameter, BuildError>
pub fn build(self) -> Result<DateTimeParameter, BuildError>
Consumes the builder and constructs a DateTimeParameter.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DateTimeParameterBuilder
impl Clone for DateTimeParameterBuilder
source§fn clone(&self) -> DateTimeParameterBuilder
fn clone(&self) -> DateTimeParameterBuilder
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 DateTimeParameterBuilder
impl Debug for DateTimeParameterBuilder
source§impl Default for DateTimeParameterBuilder
impl Default for DateTimeParameterBuilder
source§fn default() -> DateTimeParameterBuilder
fn default() -> DateTimeParameterBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DateTimeParameterBuilder
impl PartialEq for DateTimeParameterBuilder
source§fn eq(&self, other: &DateTimeParameterBuilder) -> bool
fn eq(&self, other: &DateTimeParameterBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DateTimeParameterBuilder
Auto Trait Implementations§
impl Freeze for DateTimeParameterBuilder
impl RefUnwindSafe for DateTimeParameterBuilder
impl Send for DateTimeParameterBuilder
impl Sync for DateTimeParameterBuilder
impl Unpin for DateTimeParameterBuilder
impl UnwindSafe for DateTimeParameterBuilder
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.