[][src]Struct zkinterface::owned::keyvalue::KeyValueOwned

pub struct KeyValueOwned {
    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 KeyValueOwned[src]

pub fn from_vector(
    vec_kv_ref: Option<Vector<'_, ForwardsUOffset<KeyValue<'_>>>>
) -> Option<Vec<KeyValueOwned>>
[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>(
    kv_vec: &'args [KeyValueOwned],
    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 KeyValueOwned[src]

impl Debug for KeyValueOwned[src]

impl Default for KeyValueOwned[src]

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

impl Eq for KeyValueOwned[src]

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

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

Convert from Flatbuffers references to owned structure.

impl PartialEq<KeyValueOwned> for KeyValueOwned[src]

impl Serialize for KeyValueOwned[src]

impl StructuralEq for KeyValueOwned[src]

impl StructuralPartialEq for KeyValueOwned[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.