#[non_exhaustive]pub enum RealTimeContactAnalysisTimeData {
AbsoluteTime(DateTime),
Unknown,
}
Expand description
Object describing time with which the segment is associated. It can have different representations of time. Currently supported: absoluteTime
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AbsoluteTime(DateTime)
Time represented in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl RealTimeContactAnalysisTimeData
impl RealTimeContactAnalysisTimeData
sourcepub fn as_absolute_time(&self) -> Result<&DateTime, &Self>
pub fn as_absolute_time(&self) -> Result<&DateTime, &Self>
Tries to convert the enum instance into AbsoluteTime
, extracting the inner DateTime
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_absolute_time(&self) -> bool
pub fn is_absolute_time(&self) -> bool
Returns true if this is a AbsoluteTime
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for RealTimeContactAnalysisTimeData
impl Clone for RealTimeContactAnalysisTimeData
source§fn clone(&self) -> RealTimeContactAnalysisTimeData
fn clone(&self) -> RealTimeContactAnalysisTimeData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for RealTimeContactAnalysisTimeData
impl PartialEq for RealTimeContactAnalysisTimeData
source§fn eq(&self, other: &RealTimeContactAnalysisTimeData) -> bool
fn eq(&self, other: &RealTimeContactAnalysisTimeData) -> bool
self
and other
values to be equal, and is used
by ==
.