mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-03 04:55:32 +00:00
test(webapi): test room item posting and listing
This commit is contained in:
parent
1a0347337c
commit
c0ec429c24
3 changed files with 158 additions and 5 deletions
|
@ -38,6 +38,12 @@ pub struct WithItemId<T> {
|
|||
pub item: T,
|
||||
}
|
||||
|
||||
impl<T> WithItemId<T> {
|
||||
pub fn new(cid: Id, item: T) -> Self {
|
||||
Self { cid, item }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(transparent)]
|
||||
pub struct UserKey(#[serde(with = "hex::serde")] pub [u8; PUBLIC_KEY_LENGTH]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue