pub struct PropertyValue { /* private fields */ }Expand description
Native implementation of PropertyValue
This provides the value as defined by the corresponding PropertyDefinition
Implementations§
Source§impl PropertyValue
impl PropertyValue
pub fn name(&self) -> &str
pub fn data_type(&self) -> &DataType
pub fn bytes_value(&self) -> &[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§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
Returns a duplicate 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 PropertyValue
impl Debug for PropertyValue
Source§impl FromBytes<PropertyValue> for PropertyValue
impl FromBytes<PropertyValue> for PropertyValue
fn from_bytes(bytes: &[u8]) -> Result<PropertyValue, ProtoConversionError>
Source§impl FromNative<PropertyValue> for PropertyValue
impl FromNative<PropertyValue> for PropertyValue
fn from_native( property_value: PropertyValue, ) -> Result<Self, ProtoConversionError>
Source§impl FromProto<PropertyValue> for PropertyValue
impl FromProto<PropertyValue> for PropertyValue
fn from_proto( property_value: PropertyValue, ) -> Result<Self, ProtoConversionError>
Source§impl IntoBytes for PropertyValue
impl IntoBytes for PropertyValue
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
Source§impl IntoNative<PropertyValue> for PropertyValue
impl IntoNative<PropertyValue> for PropertyValue
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<PropertyValue> for PropertyValue
impl IntoProto<PropertyValue> for PropertyValue
fn into_proto(self) -> Result<T, ProtoConversionError>
Source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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