[][src]Struct turingdb_helpers::FieldData

pub struct FieldData { /* fields omitted */ }

Contains the structure of a value represented by a key

Warning: This is serialized using bincode so deserialization should be done using same version of bincode

#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)]
pub struct FieldData {
    data: Vec<u8>,
    created: TAI64N,
    modified: TAI64N,
}

Implementations

impl FieldData[src]

pub fn new(value: &[u8]) -> FieldData[src]

Initializes a new FieldData struct

pub fn update(&mut self, value: &[u8]) -> &FieldData[src]

Updates a FieldData by modifying its time with a new TAI64N timestamp

Trait Implementations

impl Clone for FieldData[src]

impl Debug for FieldData[src]

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

impl Eq for FieldData[src]

impl PartialEq<FieldData> for FieldData[src]

impl Serialize for FieldData[src]

impl StructuralEq for FieldData[src]

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