mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
test /read API for empty project
This commit is contained in:
parent
565bed2b9d
commit
9af6c9cfd9
3 changed files with 23 additions and 5 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue