Struct grid_sdk::protocol::track_and_trace::state::ReportedValue
source · [−]pub struct ReportedValue { /* private fields */ }
Expand description
Native representation of a reported property value
Contains an updated Property
value as reported by an authorized agent.
Implementations
sourceimpl ReportedValue
impl ReportedValue
pub fn reporter_index(&self) -> &u32
pub fn timestamp(&self) -> &u64
pub fn value(&self) -> &PropertyValue
pub fn into_builder(self) -> ReportedValueBuilder
Trait Implementations
sourceimpl Clone for ReportedValue
impl Clone for ReportedValue
sourcefn clone(&self) -> ReportedValue
fn clone(&self) -> ReportedValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReportedValue
impl Debug for ReportedValue
sourceimpl FromBytes<ReportedValue> for ReportedValue
impl FromBytes<ReportedValue> for ReportedValue
fn from_bytes(bytes: &[u8]) -> Result<ReportedValue, ProtoConversionError>
sourceimpl FromNative<ReportedValue> for PropertyPage_ReportedValue
impl FromNative<ReportedValue> for PropertyPage_ReportedValue
fn from_native(native: ReportedValue) -> Result<Self, ProtoConversionError>
sourceimpl FromProto<PropertyPage_ReportedValue> for ReportedValue
impl FromProto<PropertyPage_ReportedValue> for ReportedValue
fn from_proto(
proto: PropertyPage_ReportedValue
) -> Result<Self, ProtoConversionError>
sourceimpl IntoBytes for ReportedValue
impl IntoBytes for ReportedValue
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
sourceimpl IntoNative<ReportedValue> for PropertyPage_ReportedValue
impl IntoNative<ReportedValue> for PropertyPage_ReportedValue
fn into_native(self) -> Result<T, ProtoConversionError>
sourceimpl IntoProto<PropertyPage_ReportedValue> for ReportedValue
impl IntoProto<PropertyPage_ReportedValue> for ReportedValue
fn into_proto(self) -> Result<T, ProtoConversionError>
sourceimpl PartialEq<ReportedValue> for ReportedValue
impl PartialEq<ReportedValue> for ReportedValue
sourcefn eq(&self, other: &ReportedValue) -> bool
fn eq(&self, other: &ReportedValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReportedValue) -> bool
fn ne(&self, other: &ReportedValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for ReportedValue
Auto Trait Implementations
impl RefUnwindSafe for ReportedValue
impl Send for ReportedValue
impl Sync for ReportedValue
impl Unpin for ReportedValue
impl UnwindSafe for ReportedValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more