#[non_exhaustive]pub struct ProfileTimeBuilder { /* private fields */ }
Expand description
A builder for ProfileTime
.
Implementations§
source§impl ProfileTimeBuilder
impl ProfileTimeBuilder
sourcepub fn start(self, input: DateTime) -> Self
pub fn start(self, input: DateTime) -> Self
The start time of a profile. It is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn set_start(self, input: Option<DateTime>) -> Self
pub fn set_start(self, input: Option<DateTime>) -> Self
The start time of a profile. It is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn get_start(&self) -> &Option<DateTime>
pub fn get_start(&self) -> &Option<DateTime>
The start time of a profile. It is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn build(self) -> ProfileTime
pub fn build(self) -> ProfileTime
Consumes the builder and constructs a ProfileTime
.
Trait Implementations§
source§impl Clone for ProfileTimeBuilder
impl Clone for ProfileTimeBuilder
source§fn clone(&self) -> ProfileTimeBuilder
fn clone(&self) -> ProfileTimeBuilder
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 ProfileTimeBuilder
impl Debug for ProfileTimeBuilder
source§impl Default for ProfileTimeBuilder
impl Default for ProfileTimeBuilder
source§fn default() -> ProfileTimeBuilder
fn default() -> ProfileTimeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ProfileTimeBuilder
impl PartialEq for ProfileTimeBuilder
source§fn eq(&self, other: &ProfileTimeBuilder) -> bool
fn eq(&self, other: &ProfileTimeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProfileTimeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ProfileTimeBuilder
impl Send for ProfileTimeBuilder
impl Sync for ProfileTimeBuilder
impl Unpin for ProfileTimeBuilder
impl UnwindSafe for ProfileTimeBuilder
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.