pub struct PropertyValueBuilder {
pub name: Option<String>,
pub data_type: Option<DataType>,
pub bytes_value: Option<Vec<u8>>,
pub boolean_value: Option<bool>,
pub number_value: Option<i64>,
pub string_value: Option<String>,
pub enum_value: Option<u32>,
pub struct_values: Vec<PropertyValue>,
pub lat_long_value: Option<LatLong>,
}Expand description
Builder used to create a PropertyValue
Fields
name: Option<String>data_type: Option<DataType>bytes_value: Option<Vec<u8>>boolean_value: Option<bool>number_value: Option<i64>string_value: Option<String>enum_value: Option<u32>struct_values: Vec<PropertyValue>lat_long_value: Option<LatLong>Implementations
sourceimpl PropertyValueBuilder
impl PropertyValueBuilder
pub fn new() -> Self
pub fn with_name(self, name: String) -> PropertyValueBuilder
pub fn with_data_type(self, data_type: DataType) -> PropertyValueBuilder
pub fn with_bytes_value(self, bytes: Vec<u8>) -> PropertyValueBuilder
pub fn with_boolean_value(self, boolean: bool) -> PropertyValueBuilder
pub fn with_number_value(self, number: i64) -> PropertyValueBuilder
pub fn with_enum_value(self, enum_value: u32) -> PropertyValueBuilder
pub fn with_string_value(self, string: String) -> PropertyValueBuilder
pub fn with_struct_values(
self,
struct_values: Vec<PropertyValue>
) -> PropertyValueBuilder
pub fn with_lat_long_value(
self,
lat_long_value: LatLong
) -> PropertyValueBuilder
pub fn build(self) -> Result<PropertyValue, PropertyValueBuildError>
Trait Implementations
sourceimpl Clone for PropertyValueBuilder
impl Clone for PropertyValueBuilder
sourcefn clone(&self) -> PropertyValueBuilder
fn clone(&self) -> PropertyValueBuilder
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 Default for PropertyValueBuilder
impl Default for PropertyValueBuilder
sourcefn default() -> PropertyValueBuilder
fn default() -> PropertyValueBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PropertyValueBuilder
impl Send for PropertyValueBuilder
impl Sync for PropertyValueBuilder
impl Unpin for PropertyValueBuilder
impl UnwindSafe for PropertyValueBuilder
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