#[non_exhaustive]pub struct SearchContactsTimeRangeBuilder { /* private fields */ }
Expand description
A builder for SearchContactsTimeRange
.
Implementations§
source§impl SearchContactsTimeRangeBuilder
impl SearchContactsTimeRangeBuilder
sourcepub fn type(self, input: SearchContactsTimeRangeType) -> Self
pub fn type(self, input: SearchContactsTimeRangeType) -> Self
The type of timestamp to search.
This field is required.sourcepub fn set_type(self, input: Option<SearchContactsTimeRangeType>) -> Self
pub fn set_type(self, input: Option<SearchContactsTimeRangeType>) -> Self
The type of timestamp to search.
sourcepub fn get_type(&self) -> &Option<SearchContactsTimeRangeType>
pub fn get_type(&self) -> &Option<SearchContactsTimeRangeType>
The type of timestamp to search.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start time of the time range.
This field is required.sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start time of the time range.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The start time of the time range.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end time of the time range.
This field is required.sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end time of the time range.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end time of the time range.
sourcepub fn build(self) -> Result<SearchContactsTimeRange, BuildError>
pub fn build(self) -> Result<SearchContactsTimeRange, BuildError>
Consumes the builder and constructs a SearchContactsTimeRange
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SearchContactsTimeRangeBuilder
impl Clone for SearchContactsTimeRangeBuilder
source§fn clone(&self) -> SearchContactsTimeRangeBuilder
fn clone(&self) -> SearchContactsTimeRangeBuilder
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 Default for SearchContactsTimeRangeBuilder
impl Default for SearchContactsTimeRangeBuilder
source§fn default() -> SearchContactsTimeRangeBuilder
fn default() -> SearchContactsTimeRangeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SearchContactsTimeRangeBuilder
impl PartialEq for SearchContactsTimeRangeBuilder
source§fn eq(&self, other: &SearchContactsTimeRangeBuilder) -> bool
fn eq(&self, other: &SearchContactsTimeRangeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchContactsTimeRangeBuilder
Auto Trait Implementations§
impl Freeze for SearchContactsTimeRangeBuilder
impl RefUnwindSafe for SearchContactsTimeRangeBuilder
impl Send for SearchContactsTimeRangeBuilder
impl Sync for SearchContactsTimeRangeBuilder
impl Unpin for SearchContactsTimeRangeBuilder
impl UnwindSafe for SearchContactsTimeRangeBuilder
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.