pub fn put(&mut self, entry: T) -> Result<UniqueId, Error> {
        let record = Record::new(entry);
        let rec_id = record.id.clone();
        self.update(record).and_then(|()| Ok(rec_id))
    }
/// Put a new record into the database. A unique id will be assigned to the record and
/// returned.
Put a new record into the database. A unique id will be assigned to the record and
returned.
Put a new record into the database . A unique id will be assigned to the record and returned .
pub fn put(&mut self, entry: T) -> Result<UniqueId, Error> {
        let record = Record::new(entry);
        let rec_id = record.id.clone();
        self.update(record).and_then(|()| Ok(rec_id))
    }
pub fn put ( & mut self , entry : T ) -> Result < UniqueId , Error > { let record = Record :: new ( entry ) ; let rec_id = record . id . clone ( ) ; self . update ( record ) . and_then ( | ( ) | Ok ( rec_id ) ) }
Put a new record into the database.
Put a new record into the database .
&mut self
entry
T
&mut self
entry
T