[][src]Struct grid_sdk::protocol::schema::state::PropertyValueBuilder

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>,
}

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]

pub fn with_lat_long_value(
    self,
    lat_long_value: LatLong
) -> PropertyValueBuilder
[src]

pub fn build(self) -> Result<PropertyValue, PropertyValueBuildError>[src]

Trait Implementations

impl Clone for 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]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]