WIP
This commit is contained in:
parent
6205ac27a5
commit
5267c6d2cb
3 changed files with 85 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{RepoId, Request};
|
||||
use crate::{Message, RepoId, Request, RoomCredentials};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct PublishRepo {
|
||||
|
@ -6,6 +6,22 @@ pub struct PublishRepo {
|
|||
pub name: Arc<str>,
|
||||
}
|
||||
|
||||
impl Request for PublishRepo {
|
||||
type Response = ();
|
||||
impl Message for PublishRepo {
|
||||
fn to_bytes(&self) -> Vec<u8> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl Request for PublishRepo {
|
||||
type Response = PublishRepoResponse;
|
||||
}
|
||||
|
||||
pub struct PublishRepoResponse {
|
||||
pub credentials: RoomCredentials,
|
||||
}
|
||||
|
||||
impl Message for PublishRepoResponse {
|
||||
fn to_bytes(&self) -> Vec<u8> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue