[−][src]Struct grid_sdk::protocol::schema::state::PropertyValueBuilder
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>
Methods
impl PropertyValueBuilder
[src]
pub fn new() -> Self
[src]
pub fn with_name(self, name: String) -> PropertyValueBuilder
[src]
pub fn with_data_type(self, data_type: DataType) -> PropertyValueBuilder
[src]
pub fn with_bytes_value(self, bytes: Vec<u8>) -> PropertyValueBuilder
[src]
pub fn with_boolean_value(self, boolean: bool) -> PropertyValueBuilder
[src]
pub fn with_number_value(self, number: i64) -> PropertyValueBuilder
[src]
pub fn with_enum_value(self, enum_value: u32) -> PropertyValueBuilder
[src]
pub fn with_string_value(self, string: String) -> PropertyValueBuilder
[src]
pub fn with_struct_values(
self,
struct_values: Vec<PropertyValue>
) -> PropertyValueBuilder
[src]
self,
struct_values: Vec<PropertyValue>
) -> PropertyValueBuilder
pub fn with_lat_long_value(
self,
lat_long_value: LatLong
) -> PropertyValueBuilder
[src]
self,
lat_long_value: LatLong
) -> PropertyValueBuilder
pub fn build(self) -> Result<PropertyValue, PropertyValueBuildError>
[src]
Trait Implementations
impl Clone for PropertyValueBuilder
[src]
fn clone(&self) -> PropertyValueBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for PropertyValueBuilder
[src]
fn default() -> PropertyValueBuilder
[src]
Auto Trait Implementations
impl Send for PropertyValueBuilder
impl Sync for PropertyValueBuilder
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,