Struct zkinterface::structs::keyvalue::KeyValue[][src]

pub struct KeyValue {
    pub key: String,
    pub text: Option<String>,
    pub data: Option<Vec<u8>>,
    pub number: i64,
}

Fields

key: Stringtext: Option<String>data: Option<Vec<u8>>number: i64

Implementations

impl KeyValue[src]

pub fn from_vector(
    fb_key_values: Option<Vector<'_, ForwardsUOffset<KeyValue<'_>>>>
) -> Option<Vec<KeyValue>>
[src]

pub fn build<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
    &'args self,
    builder: &'mut_bldr mut FlatBufferBuilder<'bldr>
) -> WIPOffset<KeyValue<'bldr>>
[src]

Add this structure into a Flatbuffers message builder.

pub fn build_vector<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
    key_values: &'args [KeyValue],
    builder: &'mut_bldr mut FlatBufferBuilder<'bldr>
) -> WIPOffset<Vector<'bldr, ForwardsUOffset<KeyValue<'bldr>>>>
[src]

Add a vector of these structures into a Flatbuffers message builder.

Trait Implementations

impl Clone for KeyValue[src]

impl Debug for KeyValue[src]

impl Default for KeyValue[src]

impl<'de> Deserialize<'de> for KeyValue[src]

impl Eq for KeyValue[src]

impl<K: ToString> From<(K, &'_ str)> for KeyValue[src]

impl<K: ToString> From<(K, String)> for KeyValue[src]

impl<K: ToString> From<(K, Vec<u8, Global>)> for KeyValue[src]

impl<K: ToString> From<(K, i64)> for KeyValue[src]

impl<'a> From<KeyValue<'a>> for KeyValue[src]

fn from(fb_kv: KeyValue<'_>) -> KeyValue[src]

Convert from Flatbuffers references to owned structure.

impl PartialEq<KeyValue> for KeyValue[src]

impl Serialize for KeyValue[src]

impl StructuralEq for KeyValue[src]

impl StructuralPartialEq for KeyValue[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,