[−][src]Struct zkinterface::zkinterface_generated::zkinterface::KeyValue
Generic key-value for custom attributes. The key must be a string. The value can be one of several types.
Fields
_tab: Table<'a>
Implementations
impl<'a> KeyValue<'a>
[src]
pub fn init_from_table(table: Table<'a>) -> Self
[src]
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args KeyValueArgs<'args>
) -> WIPOffset<KeyValue<'bldr>>
[src]
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args KeyValueArgs<'args>
) -> WIPOffset<KeyValue<'bldr>>
pub const VT_KEY: VOffsetT
[src]
pub const VT_DATA: VOffsetT
[src]
pub const VT_TEXT: VOffsetT
[src]
pub const VT_NUMBER: VOffsetT
[src]
pub fn key(&self) -> Option<&'a str>
[src]
pub fn data(&self) -> Option<&'a [u8]>
[src]
pub fn text(&self) -> Option<&'a str>
[src]
pub fn number(&self) -> i64
[src]
Trait Implementations
impl<'a> Clone for KeyValue<'a>
[src]
impl<'a> Copy for KeyValue<'a>
[src]
impl<'a> Debug for KeyValue<'a>
[src]
impl<'a> Follow<'a> for KeyValue<'a>
[src]
impl<'a> From<KeyValue<'a>> for KeyValueOwned
[src]
fn from(kv_ref: KeyValue<'_>) -> KeyValueOwned
[src]
Convert from Flatbuffers references to owned structure.
impl<'a> PartialEq<KeyValue<'a>> for KeyValue<'a>
[src]
impl<'a> StructuralPartialEq for KeyValue<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for KeyValue<'a>
impl<'a> Send for KeyValue<'a>
impl<'a> Sync for KeyValue<'a>
impl<'a> Unpin for KeyValue<'a>
impl<'a> UnwindSafe for KeyValue<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,