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§
Source§impl 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§
Source§impl Clone for PropertyValueBuilder
impl Clone for PropertyValueBuilder
Source§fn clone(&self) -> PropertyValueBuilder
fn clone(&self) -> PropertyValueBuilder
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 Default for PropertyValueBuilder
impl Default for PropertyValueBuilder
Source§fn default() -> PropertyValueBuilder
fn default() -> PropertyValueBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PropertyValueBuilder
impl RefUnwindSafe for PropertyValueBuilder
impl Send for PropertyValueBuilder
impl Sync for PropertyValueBuilder
impl Unpin for PropertyValueBuilder
impl UnwindSafe for PropertyValueBuilder
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