Improve network usage for small text changes #166
2 changed files with 1 additions and 10 deletions
Remove useless type
commit
bddf506eed
|
|
@ -1,7 +0,0 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
||||||
|
|
||||||
export interface UpdateBinaryDocumentVersion {
|
|
||||||
parent_version_id: bigint;
|
|
||||||
relative_path: string;
|
|
||||||
content: number[];
|
|
||||||
}
|
|
||||||
|
|
@ -21,13 +21,11 @@ pub struct CreateDocumentVersion {
|
||||||
pub content: FieldData<Bytes>,
|
pub content: FieldData<Bytes>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(TS, Debug, TryFromMultipart)]
|
#[derive(Debug, TryFromMultipart)]
|
||||||
#[ts(export)]
|
|
||||||
pub struct UpdateBinaryDocumentVersion {
|
pub struct UpdateBinaryDocumentVersion {
|
||||||
pub parent_version_id: VaultUpdateId,
|
pub parent_version_id: VaultUpdateId,
|
||||||
pub relative_path: String,
|
pub relative_path: String,
|
||||||
|
|
||||||
#[ts(as = "Vec<u8>")]
|
|
||||||
#[form_data(limit = "unlimited")]
|
#[form_data(limit = "unlimited")]
|
||||||
pub content: FieldData<Bytes>,
|
pub content: FieldData<Bytes>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue