pub struct DataValue {
pub value: Option<Variant>,
pub status: Option<StatusCode>,
pub source_timestamp: Option<DateTime>,
pub source_picoseconds: Option<u16>,
pub server_timestamp: Option<DateTime>,
pub server_picoseconds: Option<u16>,
}Expand description
A value with independent source and server clocks, quality, and 10-picosecond increments.
Fields§
§value: Option<Variant>§status: Option<StatusCode>§source_timestamp: Option<DateTime>§source_picoseconds: Option<u16>§server_timestamp: Option<DateTime>§server_picoseconds: Option<u16>Implementations§
Source§impl DataValue
impl DataValue
Sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
The effective status. An absent status field carries Good severity.
pub fn set_timestamps( &mut self, selection: TimestampsToReturn, source: DateTime, server: DateTime, )
pub fn null() -> Self
pub fn value_only<V: Into<Variant>>(value: V) -> Self
pub fn new_now<V: Into<Variant>>(value: V) -> Self
Trait Implementations§
Source§impl BinaryDecodable for DataValue
impl BinaryDecodable for DataValue
Source§impl BinaryEncodable for DataValue
impl BinaryEncodable for DataValue
Source§impl From<ByteString> for DataValue
impl From<ByteString> for DataValue
Source§fn from(v: ByteString) -> Self
fn from(v: ByteString) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DataValue
Source§impl VariantType for DataValue
impl VariantType for DataValue
Source§fn variant_type_id() -> VariantScalarTypeId
fn variant_type_id() -> VariantScalarTypeId
Built-in type identifier used when declaring a variable or array element.
Auto Trait Implementations§
impl !RefUnwindSafe for DataValue
impl !UnwindSafe for DataValue
impl Forget for DataValue
impl Freeze for DataValue
impl Move for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnsafeUnpin for DataValue
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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