Struct persistent_keystore_rs::Entry [−][src]
pub struct Entry {
pub primary_field: Field,
pub fields: HashMap<String, Field>,
pub last_timestamp: Option<SystemTime>,
}
Expand description
Entry represents all items that are contained within a Table
Fields
primary_field: Field
fields: HashMap<String, Field>
last_timestamp: Option<SystemTime>
Implementations
Returns an EntryBuilder Instance that will be used to create a new entry
use persistent_keystore_rs::Entry;
let entry = Entry::new();
Returns an Optional Field value for a given Entry
use persistent_keystore_rs::{Entry, Field};
use std::time::SystemTime;
let entry = Entry::new()
.set_primary_field(Field::String("MyFirstEntry".to_string())).unwrap()
.add_field("TimeStamp".to_string(), Field::Date(SystemTime::now())).unwrap()
.build().unwrap();
let exists = &entry.get_field("TimeStamp".to_string());
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Entry
impl UnwindSafe for Entry
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more