session-crate
Ondřej Hruška 5 years ago
parent 5fe5f064b7
commit 11cf0d1ca7
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 9
      src/main.rs
  2. 3
      src/store/mod.rs
  3. 1
      src/store/model.rs

@ -5,7 +5,7 @@ extern crate rocket;
#[macro_use]
extern crate serde;
use serde_json::{json, Number, Value};
use serde_json::Value;
//use rocket::request::FromSegments;
//use rocket::http::uri::Segments;
@ -19,12 +19,11 @@ use crate::store::model::FieldKind;
use crate::store::Store;
use indexmap::map::IndexMap;
use parking_lot::RwLock;
use rocket::http::Status;
use rocket::request::{Form, FormItems, FromForm, LenientForm};
use rocket::request::{Form, FormItems, FromForm};
use rocket::response::Redirect;
use rocket::{Data, State};
use rocket::State;
use std::env;
use std::ops::Deref;
#[derive(Serialize, Debug)]
pub struct ListContext<'a> {

@ -1,11 +1,10 @@
use crate::store::model::Model;
use indexmap::map::IndexMap;
use rocket::request::FromForm;
use serde::Serialize;
use serde_json::Value;
use std::collections::HashMap;
use std::fs::{File, OpenOptions};
use std::io::{Error, Read, Write};
use std::io::{Read, Write};
use std::path::{Path, PathBuf};
pub mod form;

@ -1,5 +1,4 @@
use indexmap::map::IndexMap;
use std::collections::HashMap;
/// A data card's model.
/// Cards of one model can be sorted, searched and filtered by their fields.

Loading…
Cancel
Save