pub struct PropertyValue { /* private fields */ }Expand description
Native implementation of PropertyValue
This provides the value as defined by the corresponding PropertyDefinition
Implementations
sourceimpl PropertyValue
impl PropertyValue
pub fn name(&self) -> &str
pub fn data_type(&self) -> &DataType
pub fn bytes_value(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn boolean_value(&self) -> &bool
pub fn number_value(&self) -> &i64
pub fn string_value(&self) -> &str
pub fn enum_value(&self) -> &u32
pub fn struct_values(&self) -> &[PropertyValue]
pub fn lat_long_value(&self) -> &LatLong
Trait Implementations
sourceimpl Clone for PropertyValue
impl Clone for PropertyValue
sourcefn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
sourceimpl FromBytes<PropertyValue> for PropertyValue
impl FromBytes<PropertyValue> for PropertyValue
fn from_bytes(bytes: &[u8]) -> Result<PropertyValue, ProtoConversionError>
sourceimpl FromNative<PropertyValue> for PropertyValue
impl FromNative<PropertyValue> for PropertyValue
fn from_native(
property_value: PropertyValue
) -> Result<Self, ProtoConversionError>
sourceimpl FromProto<PropertyValue> for PropertyValue
impl FromProto<PropertyValue> for PropertyValue
fn from_proto(
property_value: PropertyValue
) -> Result<Self, ProtoConversionError>
sourceimpl IntoBytes for PropertyValue
impl IntoBytes for PropertyValue
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
sourceimpl IntoNative<PropertyValue> for PropertyValue
impl IntoNative<PropertyValue> for PropertyValue
fn into_native(self) -> Result<T, ProtoConversionError>
sourceimpl IntoProto<PropertyValue> for PropertyValue
impl IntoProto<PropertyValue> for PropertyValue
fn into_proto(self) -> Result<T, ProtoConversionError>
sourceimpl PartialEq<PropertyValue> for PropertyValue
impl PartialEq<PropertyValue> for PropertyValue
sourcefn eq(&self, other: &PropertyValue) -> bool
fn eq(&self, other: &PropertyValue) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PropertyValue) -> bool
fn ne(&self, other: &PropertyValue) -> bool
This method tests for !=.
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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