test /read API for empty project

This commit is contained in:
Lucien Greathouse 2018-06-06 00:07:20 -07:00
parent 565bed2b9d
commit 9af6c9cfd9
3 changed files with 23 additions and 5 deletions

View file

@ -49,12 +49,12 @@ pub struct ReadAllResponse<'a> {
pub instances: Cow<'a, HashMap<Id, RbxInstance>>,
}
#[derive(Debug, Serialize)]
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ReadResponse<'a> {
pub server_id: &'a str,
pub message_cursor: i32,
pub instances: HashMap<Id, &'a RbxInstance>,
pub instances: HashMap<Id, Cow<'a, RbxInstance>>,
}
#[derive(Debug, Serialize)]